Currently, I am utilizing Mongoose and my schema looks something like this:
var User = new mongoose.Schema({
registrations:[{
fieldA: String,
fieldB: String,
}]
});
var UserModel = mongoose.model('User', User);
My objective is to locate all users whose registrations array does not have objects with fieldA == 'specific value'
.