We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09c0213 commit aec8177Copy full SHA for aec8177
server/schema/schema.js
@@ -255,7 +255,7 @@ const Mutation = new GraphQLObjectType({
255
RemovePosts:{
256
type: PostType,
257
args: {
258
- ids: {type: GraphQLList(GraphQLString)},
+ ids: {type: new GraphQLList(GraphQLString)},
259
},
260
resolve(parent, args){
261
let removedPosts = Post.deleteMany({_id: args.ids}).exec();
@@ -322,7 +322,7 @@ const Mutation = new GraphQLObjectType({
322
RemoveHobbies:{
323
type: HobbyType,
324
325
326
327
328
let removedHobbies = Hobby.deleteMany({_id: args.ids}).exec();
0 commit comments