Tag: mongo
How to use large / multiline text as a field in mongodb
November 8, 2013 Leave a comment
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…