0no-co / gql.tada

🪄 Magical GraphQL query engine for TypeScript
https://gql-tada.0no.co
MIT License
2.53k stars 41 forks source link

feat(internal/cli): Implement schema loaders for URL/SDL inputs #163

Closed kitten closed 5 months ago

kitten commented 5 months ago

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

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: f71e74a56abd24c6ea36564f0fef42ac7346abf1

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