idNotEqualTo method

QueryBuilder<MessageItem, MessageItem, QAfterWhereClause> idNotEqualTo(
  1. Id id
)

Implementation

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