Skip to content

This repo is reproduce graphql-code-generator "Unknown fragment {fragment_name}" issue

Notifications You must be signed in to change notification settings

amnpoosri/codegen-fragment-pokemen-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Description

This project is to demonstrate "Unknown fragment {fragment_name}" issue when calling useQuery hook generated by graphql-code-generator with spreaded fragment inside query.

Setup

yarn install
yarn graphql-codegen
yarn start

Error

Error: {"graphQLErrors":[],"networkError":{"name":"ServerError","response":{},"statusCode":400,"result":{"errors":[{"message":"Unknown fragment \"IsFavorite\".","locations":[{"line":16,"column":8}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}]}},"message":"Response not successful: Received status code 400"}

About

This repo is reproduce graphql-code-generator "Unknown fragment {fragment_name}" issue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published