Skip to content
Snippets Groups Projects

To get the list of collaborators

parent befeecd0
Branches feature_wishtocollab
No related tags found
1 merge request!10To get the list of collaborators
......@@ -25,6 +25,13 @@ const IdeaSchema = new mongoose.Schema({
ref: 'User',
default: [],
}],
// List of collaborators
collaborators: [{
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
default: [],
}],
}, { timestamps: true });
const Idea = mongoose.models.Idea || mongoose.model('Idea', IdeaSchema);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment