UNPKG

graphql-compose-elasticsearch

Version:
24 lines 982 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSumBucketITC = void 0; const utils_1 = require("../../../utils"); function getSumBucketITC(opts) { const name = (0, utils_1.getTypeName)('AggsSumBucket', opts); const description = (0, utils_1.desc)(` A sibling pipeline aggregation which calculates the sum across all bucket of a specified metric in a sibling aggregation. The specified metric must be numeric and the sibling aggregation must be a multi-bucket aggregation. [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html) `); return opts.getOrCreateITC(name, () => ({ name, description, fields: { buckets_path: 'String!', gap_policy: 'String', format: 'String', }, })); } exports.getSumBucketITC = getSumBucketITC; //# sourceMappingURL=SumBucket.js.map