5 ms·
For the latter, GraphQL itself explicitly forbids recursivity [0], as it's impossible to guarantee that in all cases the data isn't infinitely recursive, especi
by marksomnian 8y ago
For the latter, GraphQL itself explicitly forbids recursivity [0], as it's impossible to guarantee that in all cases the data isn't infinitely recursive, especially with cyclic queries, which could lead to a denial-of-service. Postgres has its own support for recursive queries [1], however you'd need to strap a pagination layer on top in order to make it work with GraphQL.
[0]: https://github.com/facebook/graphql/issues/91#issuecomment-254895093 https://github.com/facebook/graphql/issues/91#issuecomment-2...
[1]: https://www.postgresql.org/docs/9.1/static/queries-with.html https://www.postgresql.org/docs/9.1/static/queries-with.html
- dustingetz 8y agoWhat a cop-out. Datomic Pull, which predates Graphql by two years and does not have an impedance mismatch problem, handles recursion perfectly fine. https://docs.datomic.com/on-prem/pull.html#recursive-specifications https://docs.datomic.com/on-prem/pull.html#recursive-specifi...
- deleted 8y ago[deleted]