diff --git a/packages/node-core/src/indexer/dictionary.service.ts b/packages/node-core/src/indexer/dictionary.service.ts index ea01c6c38e..d4b5984647 100644 --- a/packages/node-core/src/indexer/dictionary.service.ts +++ b/packages/node-core/src/indexer/dictionary.service.ts @@ -62,10 +62,7 @@ function getGqlType(value: any): string { } function extractVar(name: string, cond: DictionaryQueryCondition): GqlVar { - let gqlType = getGqlType(cond.value); - if (cond.matcher === 'contains') { - gqlType = 'JSON'; - } + const gqlType = cond.matcher === 'contains' ? 'JSON' : getGqlType(cond.value); return { name,