I study graphql-code-generator and cannot understand one point.
I have schema and queries
Schema
Query
products(productType: String): [Product]
After generation I get the ts file
Generated
But the component does not have a complete list of all properties
In component
Config File:
overwrite: true
schema: 'http://localhost:3000/api/graphql'
documents: './src/graphql/**/*.graphql'
generates:
src/generated/graphql.tsx:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
What am I doing wrong?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…