Complex scalar types can be modelled using a typed JSON fields together with union types, making safe union types.Documentation Index
Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
Use this file to discover all available pages before exploring further.
Typed JSON
It is possible to define explicit types for JSON fields. The generated entity classes and the GraphQL API will respect the type definition of the field, enforcing the data integrity. ExampleUnion types
One can leverage union types supported both by Typescript and GraphQL. The union operator forschema.graphql supports only non-entity types, including typed JSON types described above. JSON types, however, are allowed to reference an entity type.
Example
