Skip to content

Commit 15c33b8

Browse files
committed
use searchParams parameter in helpers
1 parent 54e4179 commit 15c33b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/javascript/clients/client/api/helpers.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ waitForApiKey(
113113
* @summary Helper method that iterates on the `browse` method.
114114
* @param browseObjects - The browseObjects object.
115115
* @param browseObjects.indexName - The index in which to perform the request.
116-
* @param browseObjects.browseRequest - The `browse` method parameters.
116+
* @param browseObjects.searchParams - The `browse` search parameters.
117117
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is no `cursor` in the response.
118118
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
119119
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `browse` method and merged with the transporter requestOptions.
120120
*/
121121
browseObjects<T>(
122122
{
123123
indexName,
124-
browseRequest,
124+
searchParams,
125125
...browseObjectsOptions
126126
}: BrowseOptions<BrowseResponse<T>> & BrowseProps,
127127
requestOptions?: RequestOptions
@@ -131,9 +131,9 @@ browseObjects<T>(
131131
return this.browse(
132132
{
133133
indexName,
134-
browseRequest: {
134+
searchParams: {
135135
cursor: previousResponse ? previousResponse.cursor : undefined,
136-
...browseRequest,
136+
...searchParams,
137137
},
138138
},
139139
requestOptions

0 commit comments

Comments
 (0)