Class Aggregate (7.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
Concrete implementation of the Aggregate type.
Package
@google-cloud/firestore
Constructors
(constructor)(alias, aggregateType, fieldPath)
constructor
(
alias
:
string
,
aggregateType
:
AggregateType
,
fieldPath
?:
(
string
|
FieldPath
)
|
undefined
);
Constructs a new instance of the Aggregate
class
Properties
aggregateType
readonly
aggregateType
:
AggregateType
;
alias
readonly
alias
:
string
;
fieldPath
readonly
fieldPath
?:
(
string
|
FieldPath
)
|
undefined
;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class Aggregate (7.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [7.11.0 (latest)](/nodejs/docs/reference/firestore/latest/firestore/aggregate)\n- [7.9.0](/nodejs/docs/reference/firestore/7.9.0/firestore/aggregate)\n- [7.7.0](/nodejs/docs/reference/firestore/7.7.0/firestore/aggregate)\n- [7.6.0](/nodejs/docs/reference/firestore/7.6.0/firestore/aggregate)\n- [7.5.0](/nodejs/docs/reference/firestore/7.5.0/firestore/aggregate)\n- [7.4.0](/nodejs/docs/reference/firestore/7.4.0/firestore/aggregate)\n- [7.3.1](/nodejs/docs/reference/firestore/7.3.1/firestore/aggregate)\n- [7.2.0](/nodejs/docs/reference/firestore/7.2.0/firestore/aggregate)\n- [7.1.0](/nodejs/docs/reference/firestore/7.1.0/firestore/aggregate)\n- [6.4.1](/nodejs/docs/reference/firestore/6.4.1/firestore/aggregate)\n- [6.3.0](/nodejs/docs/reference/firestore/6.3.0/firestore/aggregate)\n- [6.0.0](/nodejs/docs/reference/firestore/6.0.0/firestore/aggregate)\n- [5.0.2](/nodejs/docs/reference/firestore/5.0.2/firestore/aggregate)\n- [4.15.1](/nodejs/docs/reference/firestore/4.15.1/firestore/aggregate)\n- [4.14.2](/nodejs/docs/reference/firestore/4.14.2/firestore/aggregate)\n- [4.9.8](/nodejs/docs/reference/firestore/4.9.8/firestore/aggregate) \nConcrete implementation of the Aggregate type.\n\nPackage\n-------\n\n[@google-cloud/firestore](../overview.html)\n\nConstructors\n------------\n\n### (constructor)(alias, aggregateType, fieldPath)\n\n constructor(alias: string, aggregateType: AggregateType, fieldPath?: (string | FieldPath) | undefined);\n\nConstructs a new instance of the `Aggregate` class\n\nProperties\n----------\n\n### aggregateType\n\n readonly aggregateType: AggregateType;\n\n### alias\n\n readonly alias: string;\n\n### fieldPath\n\n readonly fieldPath?: (string | FieldPath) | undefined;"]]