Skip to content

Commit 8568e48

Browse files
authored
Add 'returns record' to unsupported functions
Fixes #333
1 parent 5b6784d commit 8568e48

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/pages/postgraphile/function-restrictions.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ path: /postgraphile/function-restrictions/
44
title: Database Function Restrictions
55
---
66

7-
PostGraphile supports a wide range of PostgreSQL functions, the only major class
8-
of functions we don't support currently are VARIADIC functions. We also do not
9-
support overloaded functions because it's not currently possible to expose them
10-
neatly over GraphQL.
7+
PostGraphile supports a wide range of PostgreSQL functions; however we do not
8+
support:
9+
10+
- VARIADIC functions
11+
- overloaded functions (because it's not currently possible to expose them
12+
neatly over GraphQL)
13+
- functions that return `record` without any more type information (because we
14+
don't know what columns that `record` will contain, and thus cannot convert it
15+
to GraphQL)
16+
- to solve this, change `record` to be the name of a composite type that
17+
you've defined with `CREATE TYPE` (or similar)
1118

1219
### Thanks
1320

0 commit comments

Comments
 (0)