News for hackers. Stuff that matters.
Re:Learn GraphQL by querying JSON by spell-slinger on Wednesday May 02, 2018 @01:00PM (#16978925)
Glad you found it useful!

Sorry for the cryptic error. That happens because the two objects in the comments array reference post_id. If you change those keys to book_id everything should work.

The algorithm for generating a GraphQL schema from a JSON object could be improved, along with its error handling. I use the algorithm from this repo: https://github.com/marmelab/graphql-schema-from-json. Error messages come from there.

I'll work on improving this tool and make it more user friendly. But I think that it is worth sharing it, even at this stage.

Cheers!

There are no comments on this comment yet.