localIdNotEqualTo method

QueryBuilder<BookProgressModel, BookProgressModel, QAfterWhereClause> localIdNotEqualTo(
  1. Id localId
)

Implementation

QueryBuilder<BookProgressModel, BookProgressModel, QAfterWhereClause>
    localIdNotEqualTo(Id localId) {
  return QueryBuilder.apply(this, (query) {
    if (query.whereSort == Sort.asc) {
      return query
          .addWhereClause(
            IdWhereClause.lessThan(upper: localId, includeUpper: false),
          )
          .addWhereClause(
            IdWhereClause.greaterThan(lower: localId, includeLower: false),
          );
    } else {
      return query
          .addWhereClause(
            IdWhereClause.greaterThan(lower: localId, includeLower: false),
          )
          .addWhereClause(
            IdWhereClause.lessThan(upper: localId, includeUpper: false),
          );
    }
  });
}