Mongoose Object Array won't work on Postman Mongoose Object Array won't work on Postman mongoose mongoose

Mongoose Object Array won't work on Postman


I'am not completely sure, but when I worked with mongoose, inner objects had a new Schema object inside, in this case it would on ingredients

const IngredientSchema = new Schema({     amount: String,     ingredient: { type: Schema.ObjectId, ref:'Ingredient' }});const RecipeSchema = new Schema({    name: String,    desc: String,    author: { type: Schema.ObjectId, ref: 'User' },    category: { type: Schema.ObjectId, ref: 'Category' },    ingredients: [ IngredientSchema ],    steps: [String],    image: String,    thumbnail: String,    portions: Number,    difficulty: Number,    cookingTime: Number,    comment: String});