json-graphql-server | full fake GraphQL API | GraphQL library
kandi X-RAY | json-graphql-server Summary
kandi X-RAY | json-graphql-server Summary
Get a full fake GraphQL API with zero coding in less than 30 seconds.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of json-graphql-server
json-graphql-server Key Features
json-graphql-server Examples and Code Snippets
Community Discussions
Trending Discussions on json-graphql-server
QUESTION
I'm doing a practice with this library https://www.npmjs.com/package/json-graphql-server, I'm just trying to have the correct queries to be able to make a crud from the frontend but I don't understand how to add a new post since it does not accept it as a parameter of the query variables. apparently it does not recognize the post parameter that I am sending it, but on the right side of the documentation I have put in that variable all the fields that are required
...ANSWER
Answered 2021-Oct-03 at 19:54Your mutation doesn't seem to be in line with the schema documentation you have posted.
The schema shows that the createPost mutation takes title, views and ID fields whereas you're passing in a "post" object.
Try rewriting the mutation as:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install json-graphql-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page