Re:Postgraphql: A GraphQL schema created by reflection over ...
by j_s on Wednesday April 27, 2016 @03:13PM
(#11583610)
Curious how response depth is usually handled in something like this, especially if recursion comes into play. Don't know much yet about Relay.
[ Parent
| on HN ]
Re:Postgraphql: A GraphQL schema created by reflection over ...
by calebmer on Wednesday April 27, 2016 @04:01PM
(#11584017)
Facebook handles malicious queries by setting a list of permitted queries. I want to get this implemented soon at the server layer, check out my PR here: https://github.com/graphql/express-graphql/pull/77
Re:Postgraphql: A GraphQL schema created by reflection over ...
by tlrobinson on Wednesday April 27, 2016 @03:52PM
(#11583930)
You have to specify the depth in the query by explicitly describing each level. There's no way to specify infinite depth (by design). https://github.com/facebook/graphql/issues/91
If you really wanted to get all the comments on a post, for example, you would have to have a flattened "comments" listing (but each comment could have an id and parent id, which you could use to re-build the nested structure on the client)