View Source GoogleApi.Firestore.V1.Model.StructuredQuery (google_api_firestore v0.23.0)
A Firestore query.
Attributes
-
endAt(type:GoogleApi.Firestore.V1.Model.Cursor.t, default:nil) - A end point for the query results. -
from(type:list(GoogleApi.Firestore.V1.Model.CollectionSelector.t), default:nil) - The collections to query. -
limit(type:integer(), default:nil) - The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified. -
offset(type:integer(), default:nil) - The number of results to skip. Applies before limit, but after all other constraints. Must be >= 0 if specified. -
orderBy(type:list(GoogleApi.Firestore.V1.Model.Order.t), default:nil) - The order to apply to the query results. Firestore guarantees a stable ordering through the following rules: Any field required to appear inorder_by, that is not already specified inorder_by, is appended to the order in field name order by default. If an order on__name__is not specified, it is appended by default. Fields are appended with the same sort direction as the last order specified, or 'ASCENDING' if no order was specified. For example: `SELECT FROM Foo ORDER BY AbecomesSELECT FROM Foo ORDER BY A, name`SELECT * FROM Foo ORDER BY A DESCbecomesSELECT * FROM Foo ORDER BY A DESC, __name__ DESC`SELECT FROM Foo WHERE A > 1becomesSELECT * FROM Foo WHERE A > 1 ORDER BY A, name` -
select(type:GoogleApi.Firestore.V1.Model.Projection.t, default:nil) - The projection to return. -
startAt(type:GoogleApi.Firestore.V1.Model.Cursor.t, default:nil) - A starting point for the query results. -
where(type:GoogleApi.Firestore.V1.Model.Filter.t, default:nil) - The filter to apply.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
t() :: %GoogleApi.Firestore.V1.Model.StructuredQuery{
endAt: GoogleApi.Firestore.V1.Model.Cursor.t() | nil,
from: [GoogleApi.Firestore.V1.Model.CollectionSelector.t()] | nil,
limit: integer() | nil,
offset: integer() | nil,
orderBy: [GoogleApi.Firestore.V1.Model.Order.t()] | nil,
select: GoogleApi.Firestore.V1.Model.Projection.t() | nil,
startAt: GoogleApi.Firestore.V1.Model.Cursor.t() | nil,
where: GoogleApi.Firestore.V1.Model.Filter.t() | nil
}
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.