Open Luferov opened 2 years ago
I think, the object_id argument must be graphene.ID
instead of graphene.Int
. The id can be either a regular id (graphene.Int
) or a global id (graphene.ID
), but we assumed earlier that type must be graphene.ID
in both cases. The difference may be discovered in the resolver. If the ObjectType
implements relay.Node interface then the id is global else it is regular.
Very often it happens that you need to get one entity from the database by some key. For example:
Replaced by:
object may be
user
,group
, etc.key
anddescription
may generate automatically or set by user. Clarification about key:UserType
-> key =user_id
,GroupType
-> key =group_id
, etc.