Here is the mutation: Here is the schema used in the details field of the mutation: Error I am getting on running this code is : I have used this syntax with queries and they worked correctly. But, they are returning error with a mutation. What is incorrect in my code and how do I correct it? Answer In GraphQL,
Tag: graphql
Node Fetch Post Request using Graphql Query
I’m trying to make a POST request with a GraphQL query, but it’s returning the error Must provide query string, even though my request works in PostMan. Here is how I have it running in PostMan: And here is the code I’m running in my application: Any ideas what I’m doing wrong? Is it possible to make it so that
Error: Network error: Error writing result to store for query (Apollo Client)
I am using Apollo Client to make an application to query my server using Graphql. I have a python server on which I execute my graphql queries which fetches data from the database and then returns it back to the client. I have created a custom NetworkInterface for the client that helps me to make make customized server request (by
Custom Error Object with Apollo Server
I’m trying to use a custom error with apollo-server and it seems that my custom error has a property (code) that isn’t available from within formatError. I have a simple error handler works something like this: I’m having trouble because when I log error.code from within formatError it’s not available. How can I propagate custom properties (like code) of error