graphqlRequest: cannot run graphql mutation
See original GitHub issueUncaught (in promise) Error: Must contain a query definition. getFromAst.js:...
I merged code from feature/react-intl
branch and got the above error.
@langpavel : the new way of integrating Apollo-Client broke the whole my projects graph apis. There is currently no graphqlRequest
for mutation request.
IMO, graphqlRequest
should support both query and mutation request.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7
Top Results From Across the Web
Mutations returning Bad Request · Issue #360 - GitHub
I can't find what I'm doing wrong with mutations, simple queries are working well but I have no luck with mutations.
Read more >Making GraphQL Requests using HTTP Methods
To make a GraphQL request using the POST HTTP method, ... You can only execute query operations ( mutation operations don't work).
Read more >Mutation returns 400 error but works in GraphiQL
I've been following tutorials and trying to learn graphql with react and express and I'm running into trouble. My mutation works when I...
Read more >graphql-request - npm
Minimal GraphQL client supporting Node and browsers for scripts or simple apps. Latest version: 5.1.0, last published: 9 days ago.
Read more >Resolve unauth errors for GraphQL requests in AWS AppSync
If the header doesn't have the correct credentials, then the authorization mode rejects the request. For JSON Web Tokens (JWT), the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok @manhhailua, It is technically possible to distinguish query against mutation inside
createGraphqlRequest
so it can be migrated to Apollo completely. I’m marking this as a bug for now, will look at this soon@jayhuang75 it should be fixed by 08be6ffa095542ae10890e4ce6871ff995390b7e