Browse Source

chore: Added custom mapping prefix to access the property

Kevin Mattutat 4 năm trước cách đây
mục cha
commit
e5c70fd5f2

+ 1 - 1
packages/elasticsearch-plugin/e2e/elasticsearch-plugin.e2e-spec.ts

@@ -145,7 +145,7 @@ describe('Elasticsearch plugin', () => {
                                 graphQlType: 'Int!',
                                 graphQlType: 'Int!',
                                 environment: 'product',
                                 environment: 'product',
                                 scriptFn: input => ({
                                 scriptFn: input => ({
-                                    script: `doc['answer'].value * 2`,
+                                    script: `doc['product-answer'].value * 2`,
                                 }),
                                 }),
                             },
                             },
                         },
                         },