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
As a side note, returns table is extremely popular in Stack Overflow PostgreSQL function examples, so anyone learning from SO (ie. a very healthy percentage of Postgraphile users) will be copying function code with returns table. Perhaps this "advice" should be a big/bold/visible warning.
It may also be worth warning about this in PostGraphile's console output, maybe. Something like:
Warning: The function schema_name.function_name uses {returns table | out/inout arguments} which means that the type it returns is "anonymous". Anonymous types are very hard to augment in PostGraphile, we recommend that you instead return a new (or existing) named type - the body of your function does not need to change, only the return type - for instructions, see https://err.red/pnt
They work, but they're hard to work with; see: https://postgraphile.org/postgraphile/next/customization-overview/#adding-a-field-to-a-function-derived-type
The text was updated successfully, but these errors were encountered: