Skip to content
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 optional "referencedTable" parameter to OR PostGREST filter #250

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

mpross512
Copy link
Contributor

What kind of change does this PR introduce?

Feature

What is the current behavior?

When using the or filter, the columns have to be in the table referenced in the "from" clause

What is the new behavior?

Users can now specify an optional "referencedTable" parameter to the or filter, allowing the or to reference other tables besides the main table in the "from" clause.

Additional context

image

@mpross512
Copy link
Contributor Author

You can find the PostGREST documentation on embedded filters here

@mpross512 mpross512 changed the title feat: Added optional "referencedTable" parameter to OR PostGREST filter feat: Add optional "referencedTable" parameter to OR PostGREST filter Feb 27, 2024
Copy link
Collaborator

@grdsdev grdsdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution.

Can tou please add a test case for the or method call with a referenced table in https://github.com/supabase-community/supabase-swift/blob/main/Tests/PostgRESTTests/BuildURLRequestTests.swift

Thank you.

@grdsdev grdsdev enabled auto-merge (squash) February 29, 2024 01:20
@grdsdev grdsdev merged commit c06aa18 into supabase:main Feb 29, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants