QueryExecute<OBJ, R> extension

Operations for query builders.

on

Methods

build() DatabaseUniverseQuery<R>

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Create a query from this query builder.
count() int

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Count how many objects match the query.
countAsync() Future<int>

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Count how many objects match the query.
deleteAll({int? offset, int? limit}) int

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Delete all objects that match this query. Returns the number of deleted objects.
deleteFirst({int? offset}) bool

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Delete the first object that matches this query. Returns whether an object has been deleted.
exportJson({int? offset, int? limit}) List<Map<String, dynamic>>

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Export the results of this query as json.
findAll({int? offset, int? limit}) List<R>

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Find all objects that match this query.
findAllAsync({int? offset, int? limit}) Future<List<R>>

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Find all objects that match this query.
findFirst({int? offset}) → R?

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Find the first object that matches this query or null if no object matches.
findFirstAsync({int? offset}) Future<R?>

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Find the first object that matches this query or null if no object matches.
isEmpty() bool

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Yields true if there are no objects that match the query.
isEmptyAsync() Future<bool>

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Yields true if there are no objects that match the query.
watch({bool fireImmediately = false, int? offset, int? limit}) Stream<List<R>>

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Create a watcher that yields the results of this query whenever its results have (potentially) changed.
watchLazy({bool fireImmediately = false}) Stream<void>

Available on QueryBuilder<OBJ, R, QOperations>, provided by the QueryExecute extension

Watch the query for changes. If fireImmediately is true, an event will be fired immediately.