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

