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
The fact that you can create an inconsistent schema is very problematic. I guess another way to cause an inconsistency is to have a mismatch between instance_resolvers and interfaces, too. These kinds of issues need to be guarded against; either by designing the API so they are impossible to create, or making sure that creating an invalid schema panics/returns errors.
The other part, automatically implementing interface fields on object types seems convenient. I'm not sure how to do this in the, though. Juniper can not "upcast" an object into an interface in the general case or vice versa - this is why we need the awkward instance_resolvers. If anyone has any ideas here, let me know :)
Ideally I'd like to be able to do
And get
Currently you can get an invalid schema if you forget to implement the
id
field on theQueue
object.Python's Graphene works in this way http://docs.graphene-python.org/en/latest/types/interfaces/
I realise this wouldn't be a very backwards-compatible change
Thoughts?
The text was updated successfully, but these errors were encountered: