mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-27 00:09:45 +03:00
resolve_id should be static
This commit is contained in:
parent
dac4f2dc19
commit
95e36222ce
|
@ -123,6 +123,7 @@ class SQLAlchemyObjectType(six.with_metaclass(SQLAlchemyObjectTypeMeta, ObjectTy
|
||||||
except NoResultFound:
|
except NoResultFound:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
def resolve_id(root, args, context, info):
|
def resolve_id(root, args, context, info):
|
||||||
graphene_type = info.parent_type.graphene_type
|
graphene_type = info.parent_type.graphene_type
|
||||||
if is_node(graphene_type):
|
if is_node(graphene_type):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user