urlNotEqualTo method

QueryBuilder<MokuroCatalog, MokuroCatalog, QAfterWhereClause> urlNotEqualTo(
  1. String url
)

Implementation

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