You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Bug report
Describe the bug
A database function that returns a table called using
try await client.database.rpc()
returns aPostgresTransformBuilder
type, which doesn't have modifiers likeeq()
available.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
try await client.database.rpc()
.eq()
or another modifier to the same query.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
Additional context
This is where .rpc() in postgrest-swift returns a PostgrestTransformBuilder.
This is where .rpc() in postgrest-js returns a PostgrestFilterBuilder.
The text was updated successfully, but these errors were encountered: