Database Function Restrictions数据库函数限制
PostGraphile supports a wide range of PostgreSQL functions; however we do not support:
PostGraphile 支持绝大多数 PostgreSQL 函数,但暂不支持以下类型:
-
VARIADIC functions
VARIADIC 可变参数函数
-
overloaded functions (because it’s not currently possible to expose them neatly over GraphQL)
重载函数(目前尚无法在 GraphQL 中妥善暴露函数重载)
-
functions that return
recordwithout any more type information (because we don’t know what columns thatrecordwill contain, and thus cannot convert it to GraphQL) — to solve this, changerecordto be the name of a composite type that you’ve defined withCREATE TYPE(or similar)仅声明返回
record而未提供进一步类型信息的函数(因为我们无法获知该record包含哪些列,因而无法将其转换为 GraphQL 类型)——解决方法是将record改为使用CREATE TYPE(或类似方式)定义的复合类型名称