You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can write output type like case class XXXInput and input type case class XXX which would produce invalid schema. Graphiql will fail on this.
Also another possible error is having two output types with same name from different packages which will result in error that the first type is used in Schema, so graphiql does not report error but wrong type is there and it will fail when executing request if I use field which is present in first type but not in second.
The text was updated successfully, but these errors were encountered:
I agree some kind of check would be useful. The question is at which point do we perform that check and how do we report the problem. Most functions for building and combining apis are pure and without effects. The one that’s effectful is run for each request so it’s not ideal for this.
You can write output type like
case class XXXInput
and input typecase class XXX
which would produce invalid schema.Graphiql
will fail on this.Also another possible error is having two output types with same name from different packages which will result in error that the first type is used in Schema, so
graphiql
does not report error but wrong type is there and it will fail when executing request if I use field which is present in first type but not in second.The text was updated successfully, but these errors were encountered: