We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e52919 commit bf32358Copy full SHA for bf32358
src/elasticDSL/Aggs/Aggs.ts
@@ -48,6 +48,7 @@ export function convertAggsBlocks(blockList: GqlAggBlock[]): ElasticAggsT {
48
}
49
50
export function convertAggsRules(rules: GqlAggRules): ElasticAggsRulesT {
51
+ if (typeof rules === 'string') return rules;
52
const result = {} as ElasticAggsRulesT;
53
Object.keys(rules).forEach((key) => {
54
if (key === 'aggs' && rules.aggs) {
0 commit comments