graphql-react-typescript-spacex icon indicating copy to clipboard operation
graphql-react-typescript-spacex copied to clipboard

Example using `apollo codegen` to use dynamic fragments

Open KATT opened this issue 6 years ago • 0 comments

You don't have to merge this or anything. I saw your Medium post, I just thought I'd show that you can do dynamically typechecked fragments based on your GraphQL-queries.

This way, the typecheck will fail if you try to use a property we omitted in the actual fragment in the GraphQL-query.

Just not sure if you're aware or not :)

KATT avatar Jun 10 '19 10:06 KATT