0

I'd like to support saving CommonMark data in my node application. I've never dealt with saving Markdown or CommonMark to a Mongo database before. Should I save CommonMark data as a simple string in Mongo or is there a more optimal way to store it?

// Post Schema
var PostSchema = new Schema({
    content: {
        type: String,
        trim: true
    }
});
Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
ac360
  • 7,735
  • 13
  • 52
  • 91

0 Answers0