Skip to content
Discussion options

You must be logged in to vote

After doing the above I noticed, that, regardless of the arguments, the type of fragment should be the same, so it's kind of silly to generate types for every one of them.
So I reverted all the changes and simply made sure optimizeOperations would return original fragments as well which fixed all of my issues, but now my query type, had no ' $fragmentRefs', so I just gave up and opt out of masking.

This allowed me to get masking, and relay optimization

    config:
      skipDocumentsValidation: true
    generates:
      ./src/lib/graphql/index.ts:
          - typescript:
          - typescript-operations:
              inlineFragmentTypes: mask
          - typed-document-node:
              

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by PatrykWalach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant