Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation fails on variables used in fragments. #150

Open
todesstoss opened this issue Jan 31, 2019 · 0 comments
Open

Validation fails on variables used in fragments. #150

todesstoss opened this issue Jan 31, 2019 · 0 comments

Comments

@todesstoss
Copy link

todesstoss commented Jan 31, 2019

Hello, my query validation fails with error message:
Variable "$variableName" is never used in operation "OperationName",
while "$variableName" is used in this operation, but located in fragment which is imported from another file.

import fieldsFragment from './fragment'

const Query = gql`
  query OperationName($variableName: String!) {
    fileld {
      ...fragmentName
    }
  }
  ${fieldsFragment}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant