GraphQL Generation#

The publish-GraphQL command generates a GraphQL schema representation of a COGS model.

Mapping#

  • item types and composite types map to GraphQL object types

  • primitive properties map to scalar fields

  • relationships map to fields referencing other generated type names

  • list cardinality maps to list-valued fields