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. “errors”: [ { “message”: “Cannot return null for non-nullable field …

Nested Query GraphQl

I am new using graphql and I would like to know how could I filter my query to get the recipes that has some of the ingredient objects I have in my input array. this is the schema.gql file type Recipe …

SyntaxError: Cannot use import statement outside a module

I’ve got an ApolloServer project that’s giving me trouble, so I thought I might update it and ran into issues when using the latest Babel. My “index.js” is: And when I run it I get the error “SyntaxError: Cannot use import statement outside a module”. First I tried doing things to convince TPTB* that this was a module (with no success). So I changed the “import” to a “require” and this worked. But now I have about two dozen “imports” in other files giving me the same error. *I’m sure the root of my problem is that I’m not even

Subscription not connecting using ApolloServer

I am trying to get a subscription up and running with ApolloServer (v 2.2.2). I had a setup that all-of-a-sudden just stopped working. When I try to connect to the subscription in graphiql/PlaygroundI …

How to parse GraphQL request string into an object

I am running Apollo lambda server for GraphQL. I want to intercept the GraphQL query/mutation from the POST request body and parse it so I can find out which query/mutation the request is asking for. …