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

feat: resolve introspection from url #26

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

JoviDeCroock
Copy link
Member

Currently we support specifying a .json and .graphql file and will use that as the schema, however a lot of people don't have the schema locally. This PR adds support for fetching the schema from a remote source, this delays the LSP working for the duration of the fetch request.

Resolves #12

@@ -51,6 +52,7 @@
"@graphql-codegen/typed-document-node": "^2.3.10",
"@graphql-codegen/typescript": "^2.8.5",
"@graphql-codegen/typescript-operations": "^2.5.10",
"graphql-language-service": "^5.0.6"
"graphql-language-service": "^5.0.6",
"node-fetch": "^2.0.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took an older version of node-fetch due to the issues with the ESM enforcement and how TS resolves it 😅

@JoviDeCroock JoviDeCroock merged commit b9aa659 into main Apr 14, 2023
@github-actions github-actions bot mentioned this pull request Apr 15, 2023
@JoviDeCroock JoviDeCroock deleted the resolve-introspection-from-url branch April 16, 2023 08:40
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

Successfully merging this pull request may close these issues.

Support endpoints as schema
2 participants