How do I send get params when invoking a function that uses the GET method? #19816
alita-moore
started this conversation in
General
Replies: 2 comments 5 replies
-
Both DELETE and GET allow a body BUT it is not defined to require it. So it is up to the destination if it will handle it or not. |
Beta Was this translation helpful? Give feedback.
5 replies
-
i have found a solution for this, just pass the query params on the function name, like this await client.functions.invoke(`${FUNCTION_NAME}?id=${id}`, {
method: "DELETE"
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see in the docs there's an example of delete sending details in the body.
but this seems weird to me because DELETE doesn't have a request body, no? So does that mean that the "body" property is also used as the params object in the case of a GET / DELETE request?
Beta Was this translation helpful? Give feedback.
All reactions