diff --git a/Sources/PostgREST/PostgrestClient.swift b/Sources/PostgREST/PostgrestClient.swift index e9e5f16..95de76b 100644 --- a/Sources/PostgREST/PostgrestClient.swift +++ b/Sources/PostgREST/PostgrestClient.swift @@ -56,7 +56,7 @@ public class PostgrestClient { fn: String, params: U, count: CountOption? = nil - ) -> PostgrestTransformBuilder { + ) -> PostgrestFilterBuilder { PostgrestRpcBuilder( client: self, request: Request( @@ -76,7 +76,7 @@ public class PostgrestClient { public func rpc( fn: String, count: CountOption? = nil - ) -> PostgrestTransformBuilder { + ) -> PostgrestFilterBuilder { rpc(fn: fn, params: NoParams(), count: count) } } diff --git a/Sources/PostgREST/PostgrestRpcBuilder.swift b/Sources/PostgREST/PostgrestRpcBuilder.swift index 68aeded..de6ef28 100644 --- a/Sources/PostgREST/PostgrestRpcBuilder.swift +++ b/Sources/PostgREST/PostgrestRpcBuilder.swift @@ -7,7 +7,7 @@ public final class PostgrestRpcBuilder: PostgrestBuilder { params: U, head: Bool = false, count: CountOption? = nil - ) -> PostgrestTransformBuilder { + ) -> PostgrestFilterBuilder { // TODO: Support `HEAD` method // https://github.com/supabase/postgrest-js/blob/master/src/lib/PostgrestRpcBuilder.ts#L38 assert(head == false, "HEAD is not currently supported yet.") @@ -27,6 +27,6 @@ public final class PostgrestRpcBuilder: PostgrestBuilder { } } - return PostgrestTransformBuilder(self) + return PostgrestFilterBuilder(self) } }