Description
Bug report
Describe the bug
A database function that returns a table called using try await client.database.rpc()
returns a PostgresTransformBuilder
type, which doesn't have modifiers like eq()
available.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Create a database function that returns a table
- Call that database function with
try await client.database.rpc()
- Add
.eq()
or another modifier to the same query. - See error
Expected behavior
I should be able to add modifiers to a database function that returns a table; the JavaScript equivalent code works as expected.
Screenshots
Docs note that filters can be added after rpc()
https://supabase.com/docs/reference/swift/using-filters
System information
- OS: macOS
- supabase-swift 0.3.0
Additional context
This is where .rpc() in postgrest-swift returns a PostgrestTransformBuilder.
This is where .rpc() in postgrest-js returns a PostgrestFilterBuilder.