This project is to demonstrate "Unknown fragment {fragment_name}" issue when calling useQuery hook generated by graphql-code-generator with spreaded fragment inside query.
yarn install
yarn graphql-codegen
yarn start
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"}