Skip to content

Commit

Permalink
fix(SearchResolver): highlight argument passing it to body argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Aug 8, 2017
1 parent e27d62f commit e59b7bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/resolvers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e59b7bf

Please sign in to comment.