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.
Thanks Hiredman, I ended up adding an interpector that walks the selection-tree and counts the query depth. It works okay
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