-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add functions support #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add functions support #13
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this PR! I did leave a comment, but overall very excited about it!
I think it is done so far, except of the documentation. Any feedback? |
@leo-gall So sorry for taking so long to come back to this one. It appears that there is an analysis issue, but could you take a look? |
They were failing because there was a syntax error caused by the merge conflict resolution a few days ago. I've also added documentation btw. |
Do you have any feedback? Is anything missing or do you have any recommendations for the API? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, and sorry for taking time on this one!
What kind of change does this PR introduce?
Feature
What is the current behavior?
Currently, function invocation is not supported.
What is the new behavior?
This PR adds a new method to the
MockSupabaseHttpClient
: you can now call theregisterFunctionsResponse
function, which registers a new function. As function parameters, you can specify a name and aFunctionResponse
object. This function can now be called, e.g. usingSupabase.instance.client.functions.invoke