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