graphql

2024-09-10T17:39:00.124249Z

Hi folks, I am using Lacinia for my GraphQL API and I would like to set a max_depth on object properties. We currently have a circular reference in our schema, which might take some work to remove. It would be easier for us to set a max depth. I grep’ed through the Lacinia docs and code based and could not find anything.

2024-09-18T15:39:53.763819Z

Thanks Hiredman, I ended up adding an interpector that walks the selection-tree and counts the query depth. It works okay

2024-09-10T18:06:39.601189Z

been a while since I've been in the guts of lacinia, but you might be able to use with-context to keep a count of how many times its been through the loop