Skip to content

Commit 54724ec

Browse files
committed
Fixed fragment retreival
1 parent 8bc7003 commit 54724ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graphql/execution/experimental/fragment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ def possible_types(self):
162162
return self.context.schema.get_possible_types(self.abstract_type)
163163

164164
def get_fragment(self, type):
165+
if isinstance(type, str):
166+
type = self.context.schema.get_type(type)
167+
165168
if type not in self._fragments:
166169
assert type in self.possible_types, (
167170
'Runtime Object type "{}" is not a possible type for "{}".'

0 commit comments

Comments
 (0)