sum static method
Query to output the total value of the fields in key
of the documents in the collection.
コレクションのドキュメントのkey
のフィールドの合計値を出力するためのクエリ。
Implementation
static ModelAggregateQuery<AsyncAggregateValue<double>> sum(String key) {
return ModelAggregateQuery<AsyncAggregateValue<double>>._(
key: key,
type: ModelAggregateQueryType.sum,
onCreate: (query, collection, onFinished) {
return AsyncAggregateValue<double>._(
query: query,
collection: collection,
onFinished: onFinished,
);
},
);
}