I am trying to array user’s favorite places from place schema.
favLocations: [{ type: Schema.Types.ObjectId, ref: ‘PlaceModel’ }]
I have this but how can I have this as an array?
I am trying to array user’s favorite places from place schema.
favLocations: [{ type: Schema.Types.ObjectId, ref: ‘PlaceModel’ }]
I have this but how can I have this as an array?