Mongo stores data, one of which is an HTML document, some of which can be stored and some truncated. It is estimated that the string length is too long. What is the maximum length of mongo storage string?
There is no limit to a single field. However, the entire document cannot be longer than 16MB. In the case of more than 16MB, your write operation will directly report an error instead of truncation. Therefore, truncation is definitely not the problem caused by this end of the database. Check your application, or it may be that only this part is displayed in the GUI for your query, and use the Shell to verify whether the GUI is the problem.
In addition, by the way, it may have nothing to do with your question. If a field is indexed, the maximum length of the field is 1024 bytes.