Skip to content
Discussion options

You must be logged in to vote

Hi,

Including the fragment definition in the GraphQL operation definition is no longer necessary when using the preset: "client".

Please remove the ${UserInputFragment} line as follows:

const IndexPageQuery = graphql(`
  query IndexPageQuery {
    user {
      ...UserInputFragment
    }
  }
`);

Then, your query should be typed properly!

Replies: 1 comment

Comment options

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