Skip to content

Commit 8cad25e

Browse files
committed
Allow passing URLSearchParams when searching for data
While the strongly-typed interface is useful in most cases, it does not support some things, such as passing "id" multiple times in order to perform an "OR" query. Adding this to the "findData" API now since bulk fetching of data is a very common case - but we may want to consider adding it to all/most getters. Signed-off-by: Andrew Richardson <[email protected]>
1 parent ae8cf19 commit 8cad25e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/firefly.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export default class FireFly extends HttpBase {
230230
}
231231

232232
findData(
233-
filter?: FireFlyDataFilter,
233+
filter?: FireFlyDataFilter | URLSearchParams,
234234
options?: FireFlyGetOptions,
235235
): Promise<FireFlyDataResponse[]> {
236236
return this.getMany<FireFlyDataResponse[]>(`/data`, filter, options);

0 commit comments

Comments
 (0)