Skip to main content

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 record without any more type information (because we don’t know what columns that record will contain, and thus cannot convert it to GraphQL) — to solve this, change record to be the name of a composite type that you’ve defined with CREATE TYPE (or similar)

    仅声明返回 record 而未提供进一步类型信息的函数(因为我们无法获知该 record 包含哪些列,因而无法将其转换为 GraphQL 类型)——解决方法是将 record 改为使用 CREATE TYPE(或类似方式)定义的复合类型名称