Skip to content
Advertisement

GraphQL Error: Cannot return null for non-nullable field Mutation.deleteComment

I added a mutation to delete comments and whenever I try to delete a comment I get this error.

JavaScript

Resolver

JavaScript

Type definition

JavaScript

Advertisement

Answer

I found out that the issue was in importing errors from apollo-servers had to be in an alphabetical order.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement