-
Notifications
You must be signed in to change notification settings - Fork 62
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
Error when query type is in a different file location #36
Comments
Great question @emmenko. I can see a few issues at the moment.
That said, this wouldn't entirely solve your issue since your In the meantime, one temporary solution could be to use // dump-schema.js
import { printSchema } from 'graphql/utilities';
const schema = require('./schema.js');
console.log(printSchema(schema)); Then you could do this to validate:
The downside is that you won't get per-file validation, i.e. the line numbers will be incorrect in the report. |
Hey, thanks for the feedback.
Great, looking forward for that ;)
No reason, I actually moved all pieces of the schema in Other than that, I can wait for a proper usage to avoid doing workarounds. It's not a crucial thing after all. |
@emmenko v0.0.13 now has support for modularized schemas. 😁 Example: |
Awesome, thanks!! |
Hey there,
I've been trying this library for linting a SDL, however I'm getting this error:
The reason is most likely that I have the schema spread out to different files (see modularizing schema) and I'm using the
extend
keyword for extending theQuery
type.Any idea if this might work?
Many thanks!
The text was updated successfully, but these errors were encountered: