Skip to content

Commit 20fc545

Browse files
author
Lenz Weber
authored
Remove outdated note on anonymous types (#282)
1 parent a8fe4d9 commit 20fc545

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/pages/postgraphile/custom-mutations.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,6 @@ AS $$
116116
$$ LANGUAGE sql STRICT VOLATILE;
117117
```
118118

119-
A note on **anonymous types**: if you have a function that
120-
`RETURNS SETOF TABLE(a int, b text)` (an anonymous record type) then
121-
PostGraphile will not _currently_ pick it up due to the
122-
[common PostGraphile function restrictions](/postgraphile/function-restrictions/).
123-
It's easy to work around - define a named type:
124-
125-
```sql
126-
CREATE TYPE my_function_return_type AS (
127-
a int,
128-
b text
129-
);
130-
```
131-
132-
and then change your function to `RETURNS SETOF my_function_return_type`.
133-
134119
<!--
135120
### Graphile Plugins
136121

0 commit comments

Comments
 (0)