computed column functions with one or more additional parameters #2631
Answered
by
steve-chavez
christiaanwesterbeek
asked this question in
Q&A
-
Postgraphile has this feature. Here's their example: -- Creates `User.greet(greeting: String!)` string field
create function my_schema.users_greet(
u my_schema.users, --- required table type parameter, unexposed
greeting text --- additional parameter, will be exposed
) returns text as $$
select greeting || ', ' || u.first_name || ' ' || u.last_name || '!';
$$ language sql stable strict; Is this something that can currently be done with PostgREST? |
Beta Was this translation helpful? Give feedback.
Answered by
steve-chavez
Jan 25, 2023
Replies: 1 comment 1 reply
-
Hm, how is that function used? Is it related to #2578? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wolfgangwalther
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hm, how is that function used? Is it related to #2578?