Tag: multiline

Photo by Micah Boswell on Unsplash
Posted in How To Tools

How to use large / multiline text as a field in mongodb

I’m working on a project that requires storing large multiline chunks of text in MongoDB. The chunks should be inserted in the database during initial database population, so I need to enter them somewhere in db population script. Unfortunately you can’t just put something like this:

db.tests.insert( {
name: ‘test’,
text: ‘this is
my…

READ MORE