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

Code files supported as part of the schema #625

Open
ajotaos opened this issue Dec 9, 2020 · 0 comments
Open

Code files supported as part of the schema #625

ajotaos opened this issue Dec 9, 2020 · 0 comments

Comments

@ajotaos
Copy link

ajotaos commented Dec 9, 2020

I have a project that uses graphql-codegen for creating typings for typescript. I uses multiple .ts files to create the schema.

While migrating it, I changed the codegen.yml to a .graphqlrc.yml file and added the overrides from the documentation to the .eslintrc.yml.

Immediately, my IDE finds eslint errors in my files.

Parsing error: Unable to find any GraphQL type definitions for the following pointers:
        
          - src/server/schema/**/*.tseslint
Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: src/server/schema/user/type-defs.ts/1_/Users/aj/Developer/apollo-base/src/server/schema/user/type-defs.ts.
The file must be included in at least one of the projects provided.eslint

I did find code files supported in CodeGen but after this I see they're not shown in Config documentation. Is this not allowed?

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