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(internal/cli): Implement schema loaders for URL/SDL inputs #163

Merged
merged 10 commits into from
Mar 27, 2024

Conversation

kitten
Copy link
Member

@kitten kitten commented Mar 27, 2024

Resolve #142
Related to #76

Summary

This implements reusable loaders for GraphQL schemas from URLs and SDL/JSON files. It unifies the current logic that was used in the CLI and is placed in @gql.tada/internal so it's reusable for GraphQLSP.

The new loadFromURL loader also checks for schema support and enables the optional introspection features as needed.

Set of changes

  • Remaining TODOs for current code are annotated (mostly around tsconfig handling)
  • Implement loadFromSDL and loadFromURL with watchers
  • Replace current CLI logic with loaders
  • Clean up tsconfig resolving logic

Copy link

changeset-bot bot commented Mar 27, 2024

🦋 Changeset detected

Latest commit: f71e74a

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kitten kitten merged commit b6b7b60 into main Mar 27, 2024
2 checks passed
@kitten kitten deleted the feat/internal-loaders branch March 27, 2024 14:27
@github-actions github-actions bot mentioned this pull request Mar 27, 2024
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 inputValueDeprecation in introspection query
2 participants