Class StructuredAggregationQuery (2.7.1)

StructuredAggregationQuery(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Firestore query for running an aggregation over a StructuredQuery][google.firestore.v1.StructuredQuery].

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
structured_query google.cloud.firestore_v1.types.StructuredQuery
Nested structured query. This field is a member of `oneof`_ ``query_type``.
aggregations Sequence[google.cloud.firestore_v1.types.StructuredAggregationQuery.Aggregation]
Optional. Series of aggregations to apply over the results of the ``structured_query``. Requires: - A minimum of one and maximum of five aggregations per query.

Inheritance

builtins.object > proto.message.Message > StructuredAggregationQuery

Classes

Aggregation

Aggregation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines a aggregation that produces a single result.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields