graphql-codegen

Unable to find any GraphQL type definitions for the following pointers: src/**/*.graphql

倾然丶 夕夏残阳落幕 提交于 2021-02-18 22:33:09
问题 I am using the @graphql-codegen/cli tool to generate typescript types out of my graphql server. Here is my codegen.yml content: overwrite: true schema: "http://localhost:3001/graphql" documents: "src/**/*.graphql" generates: src/generated/graphql.tsx: plugins: - "typescript" - "typescript-operations" - "typescript-react-apollo" ./graphql.schema.json: plugins: - "introspection" Here is the package.json script I use to generate my types ( yarn schema ): "schema": "graphql-codegen --config