Use built-in postgres functions #2404
-
Is there any way we can use internal built-in function/helper functions, or more precisely, select *
from users
cross join jsonb_array_elements(favourite_subjects) as sub
where sub->>'title' = 'math'
table structurecreate table users(
id bigint generated by default as identity primary key,
favourite_subjects jsonb); |
Beta Was this translation helpful? Give feedback.
Answered by
steve-chavez
Aug 4, 2022
Replies: 1 comment 1 reply
-
You can use any pg function inside a sql function: https://postgrest.org/en/stable/api.html#stored-procedures |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nilooy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use any pg function inside a sql function: https://postgrest.org/en/stable/api.html#stored-procedures