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

Server usage #30

Open
asfernandes opened this issue Feb 14, 2023 · 2 comments
Open

Server usage #30

asfernandes opened this issue Feb 14, 2023 · 2 comments

Comments

@asfernandes
Copy link

I'm trying to use this extension in a apollo server project.

There exists multiple .graphql files defining the schema and the generator updates a json (introspection) and a generated.ts file (typescript, typescript-resolvers).

The usage in VSCode with this extension is problematic.

It only works (even for the types) if in the file I'm saving there is a query, but I do not want to create queries, I just wan't to create the schema in these .graphql files.

@asfernandes
Copy link
Author

Without a query an error is generated: Codegen threw 2 errors, first one: Unable to find any GraphQL type definitions for the following pointers:

@capaj
Copy link
Owner

capaj commented Apr 24, 2023

this only works on FE projects. PRs to enable BE usage would be welcome

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

2 participants