uniqueKeyNotEqualTo method

QueryBuilder<MediaItem, MediaItem, QAfterWhereClause> uniqueKeyNotEqualTo(
  1. String uniqueKey
)

Implementation

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