First of all, I have to admit: I am a silent newbie in GraphQL. Nevertheless, I am trying to create "GraphQLObjectType" schemas from database metadata.
I am looking for a mapping between GraphQLTypes and PostgresQL base column types.
The following list contains the most interesting types in postgresQL:
bool, text, date, time, timestamp, numeric, integer, interval, bytea, json, timestamptz, bigint, jsonb
So far, I could find the following mapping while digging in several projects like postgraphql.
postgresType → GraphQLType
text -> GraphQLString
integer → GraphQLInt
boolean → GraphQLBoolean
source
share