query method
quering the collection with a key
and value
parameters, by the queryOperator
. The following are valid queryOperators '=', '!=', 'regex', '>', '<'. The value can also be a comma seperated list of values, allowing for an 'in' query.
For example: query('age', '=', '32')
or for an itemRef query query('position.itemRefID', '=', '[432EWDWE]')
Implementation
BagelDBRequest query(String key, String queryOperator, dynamic value) {
String query = "$key:$queryOperator:$value";
_query.add(query);
return this;
}