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
@@ -210,3 +259,7 @@ If a field on a model is a Union between a class and a subclass (as in our examp
210
259
Python 3.6's typing will not preserve the Union and throws away the annotation for the subclass.
211
260
See [this issue](https://github.com/upsidetravel/graphene-pydantic/issues/11) for more details.
212
261
The solution at present is to use Python 3.7.
262
+
263
+
##### Input Object Types don't support unions as fields
264
+
265
+
This is a GraphQL limitation. See [this RFC](https://github.com/graphql/graphql-spec/blob/master/rfcs/InputUnion.md) for the progress on supporting input unions. If you see an error like '{union-type} may only contain Object types', you are most likely encountering this limitation.
0 commit comments