Replies: 1 comment
-
Hi, Unfortunately, Contember does not currently support defining the schema of a type alias, particularly for a jsonColumn. What this means is that it will only produce a GraphQL scalar alias that behaves the same as the original type. However, this setup does allow you to treat the type alias differently on the client-side using your GraphQL client. For instance, you can use the "scalars" config in GraphQL Code Generator to achieve this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Where to define that GraphQL type?
https://docs.contember.com/reference/engine/schema/columns#changing-column-type
I want to use jsonColumn and specify how that object should look like, so Contember will enforce it and TypeScript on the frontend will know what to expect.
Beta Was this translation helpful? Give feedback.
All reactions