JsonQueryBuilder class

Builder for constructing JSON queries.

Constructors

JsonQueryBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

action(QueryAction action) JsonQueryBuilder
aggregation(Map<String, dynamic> agg) JsonQueryBuilder
Set aggregation functions for aggregate queries.
build() JsonQuery
computed(Map<String, ComputedField> fields) JsonQueryBuilder
Add computed fields (correlated subqueries) to the query.
cursor(Map<String, dynamic> cursor) JsonQueryBuilder
Set the cursor for keyset pagination. The map is a unique-key value (e.g. {'id': 'abc'}); the compiler derives a keyset predicate from it and the current orderBy. Inclusive of the cursor row — pair with skip(1) to exclude it, matching Prisma.
data(Map<String, dynamic> data) JsonQueryBuilder
distinct([List<String>? fields]) JsonQueryBuilder
Add DISTINCT to the SELECT clause.
groupByFields(List<String> fields) JsonQueryBuilder
Set fields to group by for groupBy queries.
include(Map<String, dynamic> relations) JsonQueryBuilder
includeRequired(Map<String, dynamic> relations) JsonQueryBuilder
Include relations with INNER JOIN (required relations).
model(String name) JsonQueryBuilder
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orderBy(dynamic order) JsonQueryBuilder
Set ordering. Accepts a Map for single-column or List
select(Map<String, dynamic> fields) JsonQueryBuilder
selectFields(List<String> fields) JsonQueryBuilder
Select specific fields by name.
skip(int count) JsonQueryBuilder
skipDuplicates([bool value = true]) JsonQueryBuilder
For createMany/createManyAndReturn: skip rows that violate a unique constraint instead of erroring (ON CONFLICT DO NOTHING).
take(int count) JsonQueryBuilder
toString() String
A string representation of this object.
inherited
where(Map<String, dynamic> conditions) JsonQueryBuilder

Operators

operator ==(Object other) bool
The equality operator.
inherited