From e59b7bf828dc69e839bea18e89e9e43ddc55908c Mon Sep 17 00:00:00 2001 From: nodkz Date: Tue, 8 Aug 2017 22:24:41 +0600 Subject: [PATCH] fix(SearchResolver): `highlight` argument passing it to `body` argument. --- src/resolvers/search.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/resolvers/search.js b/src/resolvers/search.js index 541df5b..9fc314b 100644 --- a/src/resolvers/search.js +++ b/src/resolvers/search.js @@ -155,6 +155,11 @@ export default function createSearchResolver( delete args.aggs; } + if (args.highlight) { + args.body.highlight = args.highlight; + delete args.highlight; + } + if (args.sort) { args.body.sort = args.sort; delete args.sort;