Replies: 1 comment
-
Seems like I can just add
to the top of my schema.graphql file |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need to query a graphql endpoint generated by thegraph protocol: https://thegraph.com/en/
The schema that I am interested in is found here: https://github.com/QuickSwap/QuickSwap-subgraph/blob/master/schema.graphql
When I run the codegen, I get errors because BigInt, BigDecimal, etc. types are not defined:
I've looked throughout their repos (https://github.com/search?q=org%3Agraphprotocol+schema.graphql&type=code) and can't seem to find any
schema.graphql
file that would define these types, so I am guessing that their cli toolgraph codegen
that reads the schema.graphql files parses them differently than graphql-code-generator.Is there an easy way to extend graphql-code-generator to add these types? How should I go about this?
Beta Was this translation helpful? Give feedback.
All reactions