Answer the question
In order to leave comments, you need to log in
How to find/update a document in a nested mongodb collection?
Hello! A question. I have a collection like this:
const GroupsShema = new Schema({
name: {
type: String,
required: [ true, 'Укажите название группы']
},
groupInvite: {
type: String,
required: [ true, 'Укажите инвайт группы']
},
users: [
{
author: {
type: String
},
role: {
type: String
},
token: {
type: String
},
login: {
type: String,
},
hash: String,
salt: String
}
]
});
Answer the question
In order to leave comments, you need to log in
It 's brilliantly written in the manual . Look there more often.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question