Skip to content

Commit 2d8bf8f

Browse files
committed
fix: add support to find method for _source filtering
- Add _source parameter to findParams to support field selection - Fixes .find + test by properly filtering returned fields - All 181 tests now passing (100% pass rate)!
1 parent 641e99f commit 2d8bf8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/methods/find.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export function find(service: ElasticAdapterInterface, params: ElasticsearchServ
4747
sort: filters.$sort as string | string[] | undefined,
4848
routing: filters.$routing as string | undefined,
4949
query: esQuery ? { bool: esQuery } : undefined,
50+
_source: filters.$select as string[] | boolean | undefined,
5051
...(service.esParams as Record<string, unknown>)
5152
}
5253

0 commit comments

Comments
 (0)