mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-13 13:16:49 +03:00
Merge branch 'refs/heads/master' into sqlalchemy
This commit is contained in:
commit
b86b5a7385
|
@ -125,9 +125,13 @@ class Node(six.with_metaclass(NodeMeta, Interface)):
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def global_id(cls, id):
|
||||||
|
type_name = cls._meta.type_name
|
||||||
|
return to_global_id(type_name, id)
|
||||||
|
|
||||||
def to_global_id(self):
|
def to_global_id(self):
|
||||||
type_name = self._meta.type_name
|
return self.global_id(self.id)
|
||||||
return to_global_id(type_name, self.id)
|
|
||||||
|
|
||||||
connection_type = Connection
|
connection_type = Connection
|
||||||
edge_type = Edge
|
edge_type = Edge
|
||||||
|
|
Loading…
Reference in New Issue
Block a user