Skip to content

Commit 6647c43

Browse files
committed
fix(SearchHitItem): add descriptions to fields
1 parent 97cd92a commit 6647c43

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/types/SearchHitItem.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,19 @@ export function getSearchHitItemTC(opts: SearchOptsT = {}): TypeComposer {
3131
description: desc(`Use explain API on query`),
3232
},
3333

34-
// if arg.version = true
3534
_version: 'Int',
3635

37-
// if args.highlight is provided
38-
highlight: 'JSON',
36+
highlight: {
37+
type: 'JSON',
38+
description: 'Returns data only if `args.highlight` is provided',
39+
},
3940

4041
// return sort values for search_after
4142
sort: 'JSON',
4243

4344
fields: {
4445
type: 'JSON',
45-
description: 'Returns result from `script_fields`',
46+
description: 'Returns result from `args.opts.body.script_fields`',
4647
},
4748
},
4849
})

0 commit comments

Comments
 (0)