This repository was archived by the owner on Dec 8, 2021. It is now read-only.
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
Configure GraphQL scalar mapping #165
Open
Description
While GraphQL SDL doesn't yet support an expressive enough syntax for scalar value definitions, there is some mapping needed for custom scalars (e.g. DateTime
in GraphQL SDL should map to string
in TypeScript). This mapping is depending on the application's implementation and therefore needs to be configured in the graphqlgen.yml
.
Here is a proposal for the configuration format:
scalars:
DateTime: string
Additionally, we should extend the validation logic of graphqlgen
(similar to how types <> models are validated) to always require a mapping for custom scalars.