supabase-community / postgrest-csharp

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

Not filter method signature #11

Closed elrhomariyounes closed 3 years ago

elrhomariyounes commented 3 years ago

Feature request

Is your feature request related to a problem? Please describe.

Hello, I was wondering for the Not filter if we can pass the QueryFilter parameters directly to the Not method instead of passing a QueryFilter object.

The current behavior we should do like this :

var filter = new QueryFilter("username", Constants.Operator.Equals, "supabot");
var response = await client.Table<User>().Not(filter).Get();

Describe the solution you'd like

To do the same thing as postgrest-js not filter.

var response = await client.Table<User>().Not("status",Constants.Operators.Equals,"ONLINE").Get();

Thank you.

acupofjose commented 3 years ago

Can do!