mediaTypeIdentifierNotEqualTo method

QueryBuilder<MediaItem, MediaItem, QAfterWhereClause> mediaTypeIdentifierNotEqualTo(
  1. String mediaTypeIdentifier
)

Implementation

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