If I want to add some data to my schema below:
'use strict';
var mongoose = require('mongoose')
, Schema = mongoose.Schema;
var notificationsSchema = new mongoose.Schema({
    notifyMessage                   : { 
            title                       : { type: String },
            des                         : { type: String }
        },
        notifier                        : { type: String },
        recipient                       : [{
            id                          : { type: String },
            status                      : {type:String,trim:true,enum:['read','unread']}
        }]
});
module.exports = mongoose.model('notification_tracker', notificationsSchema);
I tried this way:

But it ended up this way..
Select the raw radio button and make sure to set it as JSON(application/json) then paste or add your JSON object like this

{
  notifyMessage: {
    title: "",
    des: ""
  },
  notifier: "",
  recipient: [{
    id: "",
    status:""
  }, {
    id: "",
    status:""
  }]
}
Using this format
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With