Support returns table (like <tablename>)
in stored procedure record returns.
#424
Labels
enhancement
New feature or request
I saw this example on discord:
I tried it out for myself as a way to filter records by complex queries but I notice it doesn't work unless you provide all the individual columns in the
return table (...)
in postgres. It would be neat ifreturn table (like users)
worked as it removes a load of overhead redefining your query functions every time you modify the users table and would like to make all columns available to the graphql query.The
returns table (like users)
works on the postgres side in postgres14 but in graphjin over on the graphql side you get the errorunknown column get_user_by_complex.<column>
for any column you try to access in the result. I'm guessing because the postgres introspection graphjin does can't figure out all the column types of the table referenced in the return value.The text was updated successfully, but these errors were encountered: