Is there a way to -only- generate types to serialize/deserialize into?
Closed this issue · 2 comments
valarauca commented
I'm consuming 3rd party graphql, so the query definitions I have are making the cli tool vomit parsing errors. The OSS code is used to generate typescript/go-lang, so I'm not sure what the issue is.
Is there a way to just take the introspection json and convert that into Rust type definitions?
I was hoping this could save time generating definitions to serialize/deserialize into.
tomhoule commented
This library is only about generating types for specific queries, so that's not part of the scope. What errors are you seeing?
valarauca commented
I figured it out. I assumed I could just give the exact same schema.graphql I used to generate the go-lang. It seems I have to give the cli tool a much narrower subset of the input/output.