How to correctly use third-party GraphQL schema object types #1391
-
I'm using a library graphql-geojson that defines a number of GraphQL schema object types based on the GeoJSON spec. I thought (probably naively) that I may just be able to import these and use them as a Field type, but I get the The error only seems to happen when I use one of the I've also tried adding the types to
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
AFAIR TypeGraphQL does not cooperate with The support could be easily added, but I don't have throughput for that for now 😕 |
Beta Was this translation helpful? Give feedback.
AFAIR TypeGraphQL does not cooperate with
graphql-js
types. You would need to redeclare those types with decorators, maybe this tool can help you:https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-type-graphql
The support could be easily added, but I don't have throughput for that for now 😕