supabase-community / postgrest-csharp

A C# Client library for Postgrest
https://supabase-community.github.io/postgrest-csharp/api/Postgrest.html
MIT License
117 stars 23 forks source link

Make RPC params optional #68

Closed wiverson closed 1 year ago

wiverson commented 1 year ago

I have a fair number of functions that rely on auth id for results with no params.

What kind of change does this PR introduce?

Just a minor tweak to make the RPC parameters optional. Shouldn't affect existing code.

What is the current behavior?

Switching the signature from

public Task<BaseResponse> Rpc(string procedureName, Dictionary<string, object> parameters)

to

public Task<BaseResponse> Rpc(string procedureName, Dictionary<string, object>? parameters = null)
acupofjose commented 1 year ago

LGTM!