pub struct Query {
pub limit: Option<i64>,
pub offset: Option<i64>,
pub order_by: Vec<(String, String)>,
pub filter: Option<Filter>,
pub group: Option<String>,
pub children: bool,
pub fields: Option<Vec<String>>,
}Expand description
request.query for a list, and the filter that decides it.
request.query holds limit, offset and orderBy from here, and what the official
emulator derives from the path (tools/oracle/rules_request_fields.py): kind, the
collection ID (null for a query of every collection); parent, the document the collection
is in (null at the root), named ancestor for a collection group; allDescendants; and
distinct and selectOnlyKeys, always false, and groupBy, always empty, which Firestore
queries cannot set.
Fields§
§limit: Option<i64>§offset: Option<i64>§order_by: Vec<(String, String)>The orderings the query gives (not those completing it), field path to ASC or
DESC, in the order request.query.orderBy lists them.
filter: Option<Filter>§group: Option<String>For a collection group, its collection ID: the list covers the collections with that ID
at any depth below Request::path (an empty ID: every collection below it).
children: boolWith an empty Query::group: only the collections directly below Request::path
(a query whose from has no collection ID and is not allDescendants).
fields: Option<Vec<String>>request.fields: the fields the query selects, as the official emulator lists them
(None, null, without a projection).