You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for us to have consistent IDs and unique IDs for all our entities we made all entities were inheriting from this class:
classObjectTypeWithID(ObjectType):
id=ID(required=True, description="globally unique identifier")
entity_id=String(required=True, description="identifier for the entity")
model_id=String(required=True, description="identifier for the entity model")
def__init__(self, id):
print('!!!ObjectTypeWithID.__init__')
self.id=generate_global_id(self.__class__.__name__, id)
self.entity_id=idself.model_id=id# usage classUser(ObjectTypeWithID)
def__init__:
super().__init__(user_id)
This worked fine in Graphene 2.x but once we tried to upgrade to Graphene 3.x it seems like super().__init__ does not trigger ObjectTypeWithID
I checked the mro and I noticed there's now InterObjectType between User and it's parent ObjectTypeWithID and I suspect it's getting in the way when call super()
In order for us to have consistent IDs and unique IDs for all our entities we made all entities were inheriting from this class:
This worked fine in Graphene 2.x but once we tried to upgrade to Graphene 3.x it seems like
super().__init__
does not triggerObjectTypeWithID
I checked the mro and I noticed there's now InterObjectType between User and it's parent ObjectTypeWithID and I suspect it's getting in the way when call
super()
user.__class__.__mro__
in Graphene 3.xuser.__class__.__mro__
in Graphene 2.xThe text was updated successfully, but these errors were encountered: