mediaIdentifierNotEqualTo method

QueryBuilder<MediaItem, MediaItem, QAfterWhereClause> mediaIdentifierNotEqualTo(
  1. String mediaIdentifier
)

Implementation

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