supabase-community / postgrest-go

Isomorphic Go client for PostgREST. (Now Updating)
https://supabase.io
Apache License 2.0
170 stars 27 forks source link

feat: add "and" logical operator #42

Closed icepuma closed 8 months ago

icepuma commented 8 months ago

What kind of change does this PR introduce?

- doc: https://postgrest.org/en/stable/references/api/tables_views.html#logical-operators
- hint: couldn't find the documentation if "$foreignTable.and" is supported like "$foreignTable.or"
muratmirgun commented 8 months ago

@icepuma thanks for first contributions I will look your pr

muratmirgun commented 8 months ago

Hello Again I check docs and look for an example but I can't find one. Can you check and test with Postgrest from compose file in main folder and look again please if you need sample data you can check here: https://www.databasestar.com/sample-bookstore-database/

icepuma commented 8 months ago

Hey, there's two things I added. The and operator and the $foreignTable.and. The and operator is documented at the link I shared. The second operator is "documented" here where children.and= should be the case for the second "operator".

muratmirgun commented 8 months ago

Okay, Thanks I merge it 🚀