-
I'd like to pass in a parameter that should not be interpolated into the URL, but instead included as a GET request query parameter. For example:
The account_id is being interpolated correctly, but I expected the resulting url for the GET request to look like Instead, I get: I've also tried the Is something like this possible (url parameters that are not in the route being appended as query parameters)? Nathan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Nathan! The behavior is intended to allow passing a full object without sending unnecessary data. To provide query parameters, do it explicitly using the await PeopleApi.lookup({ account_id: '1234', query: { email: '[email protected]' } }) Notice that you can safely omit |
Beta Was this translation helpful? Give feedback.
Hi Nathan!
The behavior is intended to allow passing a full object without sending unnecessary data.
To provide query parameters, do it explicitly using the
query
option:Notice that you can safely omit
params
in most cases.