Skip to content

Commit 6145d46

Browse files
committed
Union & Interface resolve_type now takes secondary info argument (to match is_type_of).
1 parent 24f79fe commit 6145d46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql/core/type/definition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def is_possible_type(self, type):
383383

384384
def resolve_type(self, value, info):
385385
if self.type_resolver:
386-
return self.type_resolver(value)
386+
return self.type_resolver(value, info)
387387

388388
return get_type_of(value, info, self)
389389

@@ -458,7 +458,7 @@ def is_possible_type(self, type):
458458

459459
def resolve_type(self, value, info):
460460
if self._resolve_type:
461-
return self._resolve_type(value)
461+
return self._resolve_type(value, info)
462462

463463
return get_type_of(value, info, self)
464464

0 commit comments

Comments
 (0)