3 ms·
If you use a graph database, something like the GraphQL compiler project might be useful: https://github.com/kensho-technologies/graphql-compiler https://github
by obi1kenobi 9y ago
If you use a graph database, something like the GraphQL compiler project might be useful: https://github.com/kensho-technologies/graphql-compiler https://github.com/kensho-technologies/graphql-compiler
Primer on how to use it: https://blog.kensho.com/compiled-graphql-as-a-database-query-language-72e106844282 https://blog.kensho.com/compiled-graphql-as-a-database-query...
I work at Kensho and we use it with queries that are 10+ levels of nesting with no problems.
- johnymontana 9y agoInteresting approach for using GraphQL with a graph database. There is also an integration for Neo4j [1] that works similarly (it translates GraphQL to Cypher), however it also exposes Cypher in GraphQL through a @cypher directive, which maps complex graph traversals/aggregations to a single GraphQL field. [1] https://www.npmjs.com/package/neo4j-graphql-cli https://www.npmjs.com/package/neo4j-graphql-cli