We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d36c1c commit cfeaa39Copy full SHA for cfeaa39
graphql/type/definition.py
@@ -527,8 +527,7 @@ def _define_field_map(self):
527
'{} fields must be a mapping (dict / OrderedDict) with field names as keys or a '
528
'function which returns such a mapping.'
529
).format(self)
530
-
531
- if not isinstance(fields, OrderedDict):
+ if not isinstance(fields, (collections.OrderedDict, OrderedDict)):
532
fields = OrderedDict(sorted(list(fields.items())))
533
534
for field_name, field in fields.items():
0 commit comments