Reputation: 130
I'm using Mongoose and have a schema like this:
var User = new mongoose.Schema({
registrations:[{
fieldA: String,
fieldB: String,
}]
});
var UserModel = mongoose.model('User', User);
I want to find all users that their registrations array does not contain objects with fieldA == 'specific value'
.
Upvotes: 1
Views: 3577