Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow loading schema from SDL definition file as well as JSON #60

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Tabby
Copy link

@Tabby Tabby commented Feb 21, 2025

If passing a path to a file with a name that ends in ".graphql" or ".graphqls" (matching the filenames used in
graphql-ruby), attempt to load the schema from that file assuming it's a schema definition rather than a JSON schema.

Tabby and others added 2 commits February 21, 2025 15:06
If passing a path to a file with a name that ends in ".graphql" or
".graphqls" (matching the filenames used in
[graphql-ruby](https://github.com/rmosolgo/graphql-ruby/blob/master/lib/graphql/schema.rb#L116)),
attempt to load the schema from that file assuming it's a schema
definition rather than a JSON schema.
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.

2 participants