【发布时间】:2016-11-25 15:36:53
【问题描述】:
首先我必须承认:我对 GraphQL 很陌生。但尽管如此,我还是试图从数据库元数据中生成“GraphQLObjectType”模式。
我正在寻找 GraphQLTypes 和 PostgresQL 基本列类型之间的映射。
以下列表包含 postgresQL 中最有趣的类型:
bool、文本、日期、时间、时间戳、数字、整数、间隔、bytea、json、timestamptz、bigint、jsonb
到目前为止,我在挖掘 postgraphql 等几个项目时可以找到以下映射。
postgresType -> GraphQLType
文本 -> GraphQLString
整数 -> GraphQLInt
boolean -> GraphQLBoolean
【问题讨论】:
标签: postgresql types mapping graphql