Fix get_type call

This commit is contained in:
Eran Kampf 2020-08-07 13:35:41 -07:00
parent 29dd3f8391
commit 0439d63b72

View File

@ -99,7 +99,7 @@ class Node(AbstractNode):
)
)
graphene_type = info.schema.get_type(_type)
graphene_type = info.schema.graphql_schema.get_type(_type)
if graphene_type is None:
raise Exception(f'Relay Node "{_type}" not found in schema')