Re:RedwoodJS 1.0
by dthyresson on Monday April 04, 2022 @06:05PM
(#30912573)
> You could validate against having too many layers of nesting in one query
The GraphQL Server in RedwoodJS does query depth limiting out-of-the-box. You can configure it, but by default the depth is 11 -- because all the best things go to 11.
I was referring to this: https://join-monster.readthedocs.io/en/latest/
You could validate against having too many layers of nesting in one query, validate pagination, provide abstract relationships for the many nesting and special case those joins, etc.
It's basically a question of how to efficiently query data. There's always ways, but it might require some trimming of allowed graphql queries.