nameNotEqualTo method

QueryBuilder<DictionaryTag, DictionaryTag, QAfterWhereClause> nameNotEqualTo(
  1. String name
)

Implementation

QueryBuilder<DictionaryTag, DictionaryTag, 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,
          ));
    }
  });
}