Closed allexysleeps closed 5 years ago
Thanks for the bug report, I'll take a look shortly.
What version are you running?
Also, could you share your .graphql
schema so that I can reproduce the bug?
Thanks! 😃
Hi @cjoudrey. I'm running "0.2.1"
I guess it would work for schema files without type Query
interface Address {
id: String
line1: String
line2: String
}
type BaseAddress implements Address {
id: String
line1: String
line2: String
}
I've reproduced it with the following schema
I'll take a look at fixing the bug, it shouldn't be crashing on you. 😄
That said, the error that it is returning (and will continue to return after the bug is fixed) is normal.
graphql-schema-linter
expects to be passed a valid GraphQL schema.
The schema you pasted above isn't technically valid according to the spec:
The
query
root operation type must be provided and must be an Object type.
There may be a way to improve this behaviour by having graphql-schema-linter
attempt to lint the schema anyway instead of only returning that error, but I haven't looked into that.
I just realized this is a dupe of #172. I'm going to close this one for now. Thanks for the reminder though.
Hi, @cjoudrey. Sorry, I forgot to answer.
Thank you for the fix.
Hi, guys, I'm getting the following classic error :)
TypeError: Cannot read property '0' of undefined
Error is happening here:
Here is the error that falls