ModelDatabaseConditionQuery class

Base class for creating queries to access the database.

If a list exists on CollectionModelPath.query, only the conditions specified there are queryable.

If you use FirebaseDataConnect, this is required; if you use Firestore, RealtimeDatabase, or LocalDatabase, it is not necessary.

データベースへのアクセスを行うクエリを作成するためのベースクラスです。

CollectionModelPath.query上のでリストが存在している場合、そこで指定されている条件のみがクエリ可能となります。

FirebaseDataConnectを利用する場合、こちらの指定は必須となります。FirestoreやRealtimeDatabase、LocalDatabaseを利用する場合は特に必要ありません。

Implemented types

Constructors

ModelDatabaseConditionQuery.arrayContains(Object key)
A filter that checks whether an array in the data contains a value.
const
ModelDatabaseConditionQuery.arrayContainsAny(Object key)
A filter that checks whether the array in the data contains one of the array values.
const
ModelDatabaseConditionQuery.collectionGroup()
Filter for collection groups. Available on Firestore only.
const
ModelDatabaseConditionQuery.equalTo(Object key)
A filter that checks for a match to a value in the data.
const
ModelDatabaseConditionQuery.geoHash(Object key)
A filter that checks whether a location exists within the given GeoHash.
const
ModelDatabaseConditionQuery.greaterThan(Object key)
Filter to check if the value is greater than the value in the data.
const
ModelDatabaseConditionQuery.greaterThanOrEqualTo(Object key)
A filter that checks whether a value is greater than (or equal to) a number in the data.
const
ModelDatabaseConditionQuery.isNotNull(Object key)
A filter that checks if a value in the data is not Null.
const
ModelDatabaseConditionQuery.isNull(Object key)
A filter that checks whether a value in the data is Null or not.
const
ModelDatabaseConditionQuery.lessThan(Object key)
Filter to check if the value is smaller than the value in the data.
const
ModelDatabaseConditionQuery.lessThanOrEqualTo(Object key)
A filter that checks whether a value is less than (or equal to) a number in the data.
const
ModelDatabaseConditionQuery.like(Object key)
A filter that checks if the given text is included in the text in the data.
const
ModelDatabaseConditionQuery.limit()
A filter that limits the number of data.
const
ModelDatabaseConditionQuery.notEqualTo(Object key)
A filter that checks for a match to a value in the data.
const
ModelDatabaseConditionQuery.orderByAsc(Object key)
Filter to sort data in ascending order.
const
ModelDatabaseConditionQuery.orderByDesc(Object key)
Filter to sort data in descending order.
const
ModelDatabaseConditionQuery.whereIn(Object key)
A filter that checks if there is data matching one of the values in the given array.
const
ModelDatabaseConditionQuery.whereNotIn(Object key)
A filter that checks for data that does not match any of the values in the given array.
const

Properties

children → List<ModelDatabaseQuery>?
Specify if there is a condition associated with this ModelDatabaseQuery.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Object?
Specify the target key.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → ModelDatabaseQueryFilterType
Define the filter type for ModelDatabaseQuery.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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