Some of my confusion now is that when should an operator be in front of the field and when should it not be.
For example
// when using $eq
// <field> then <operator>
.find({
name : {
$eq : 'Couchbase Airlines'
}
}
// when using $in
// <operator> then <field>
.find({
$in: {
search_expr: 'model',
target_expr: ['767-300F']
}
}
Any way to properly identify where it should be defined?
Hi,
On top of what was mentioned in https://github.com/bwgjoseph/mongoose-vs-ottoman/issues/53#issuecomment-849603597, I think in general, there isn't a place to look at the example of all query operator using
ottoman
API. All those mentioned in query-builder aren't of much use when not usingquery
.Some of my confusion now is that when should an operator be in front of the field and when should it not be.
For example
Any way to properly identify where it should be defined?
Thanks