|
|
|
|
|
by spell-slinger
2976 days ago
|
|
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! |
|