orderNotEqualTo method
Implementation
QueryBuilder<Dictionary, Dictionary, QAfterWhereClause> orderNotEqualTo(
int order) {
return QueryBuilder.apply(this, (query) {
if (query.whereSort == Sort.asc) {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'order',
lower: [],
upper: [order],
includeUpper: false,
))
.addWhereClause(IndexWhereClause.between(
indexName: r'order',
lower: [order],
includeLower: false,
upper: [],
));
} else {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'order',
lower: [order],
includeLower: false,
upper: [],
))
.addWhereClause(IndexWhereClause.between(
indexName: r'order',
lower: [],
upper: [order],
includeUpper: false,
));
}
});
}