resolve_id should be static

This commit is contained in:
Eran Kampf 2016-08-19 15:33:34 -07:00 committed by GitHub
parent dac4f2dc19
commit 95e36222ce

View File

@ -123,6 +123,7 @@ class SQLAlchemyObjectType(six.with_metaclass(SQLAlchemyObjectTypeMeta, ObjectTy
except NoResultFound:
return None
@staticmethod
def resolve_id(root, args, context, info):
graphene_type = info.parent_type.graphene_type
if is_node(graphene_type):