QuietRocketQ
Convex Community5mo ago
4 replies
QuietRocket

Error on .any() field: "Document is too nested"

Hi. I have an .any() field on an object in my Schema. The documentation doesn't mention any limitations.

I have JSON objects which are apparently deeply nested. I'm unable to insert one such object, getting the following error: ... isn't a valid document: Document is too nested (nested 18 levels deep > maximum nesting 16)

Must I really re-architecture my JSON document representation to always be inferior or equal to 16 levels, or should I just stringify the JSON and store the document as a string, or something else?

Thank you
Was this page helpful?