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

Fix issue with marshalling of stored procedure arguments #75

Closed corrideat closed 1 year ago

corrideat commented 1 year ago

What kind of change does this PR introduce?

Addresses issue #74

What is the current behavior?

Data are forced into a Dictionary<string, string> before sending them to PostgREST. This doesn't work for nested data.

What is the new behavior?

The Dictionary<string, string> is changed to Dictionary<string, object>

The Dictionary<string, string> is changed to object (so that any class can be passed without needing to convert to Dictonary)

corrideat commented 1 year ago

(I've also changed the binding in docker-compose.yml to start with 127.0.0.1 so that Docker doesn't open ports to the Internet)