Skip to content

Commit e59b7bf

Browse files
committed
fix(SearchResolver): highlight argument passing it to body argument.
1 parent e27d62f commit e59b7bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/resolvers/search.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ export default function createSearchResolver(
155155
delete args.aggs;
156156
}
157157

158+
if (args.highlight) {
159+
args.body.highlight = args.highlight;
160+
delete args.highlight;
161+
}
162+
158163
if (args.sort) {
159164
args.body.sort = args.sort;
160165
delete args.sort;

0 commit comments

Comments
 (0)