Skip to content

Commit aec8177

Browse files
committed
fix: misssing new envokation on in schema
1 parent 09c0213 commit aec8177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/schema/schema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ const Mutation = new GraphQLObjectType({
255255
RemovePosts:{
256256
type: PostType,
257257
args: {
258-
ids: {type: GraphQLList(GraphQLString)},
258+
ids: {type: new GraphQLList(GraphQLString)},
259259
},
260260
resolve(parent, args){
261261
let removedPosts = Post.deleteMany({_id: args.ids}).exec();
@@ -322,7 +322,7 @@ const Mutation = new GraphQLObjectType({
322322
RemoveHobbies:{
323323
type: HobbyType,
324324
args: {
325-
ids: {type: GraphQLList(GraphQLString)},
325+
ids: {type: new GraphQLList(GraphQLString)},
326326
},
327327
resolve(parent, args){
328328
let removedHobbies = Hobby.deleteMany({_id: args.ids}).exec();

0 commit comments

Comments
 (0)