Hi @Juliana_Fernandes,
As you know, MongoDB document size must be below 16MB. If you try to store a document larger than that, it will not allow the data to be stored and will show an error like the one you mentioned:
2024-07-10T16:30:44.513-0300 Failed: an inserted document is too large.
Above mentioned JSON file seems to contain a single large document { } with a large number of elements in an array. To address this, try to:
- Segregate the document into multiple pieces the document must not be contains 16MB of data.
- Change the document structure or data modeling in this scenario.
I hope this helps!
1 Like