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 8bc7003 commit 54724ecCopy full SHA for 54724ec
graphql/execution/experimental/fragment.py
@@ -162,6 +162,9 @@ def possible_types(self):
162
return self.context.schema.get_possible_types(self.abstract_type)
163
164
def get_fragment(self, type):
165
+ if isinstance(type, str):
166
+ type = self.context.schema.get_type(type)
167
+
168
if type not in self._fragments:
169
assert type in self.possible_types, (
170
'Runtime Object type "{}" is not a possible type for "{}".'
0 commit comments