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
class Meta:
model = CoworkerModel
interfaces = (relay.Node,)
rowid=graphene.Int()
@resolve_only_args
def resolve_rowid(self, **args):
# print(self.__dict__)
id = self.__dict__['id']
return id
When query all-objects, it overrides the row id which is primary key by global id (ID!) which is a cursor.
But we still need the raw id which is table primary key.
allAuthUsers{
edges
{
node{
id
username
}
}
}
"data": {
"allAuthUsers": {
"edges": [
{
"node": {
"id": "QXV0aFVzZXI6MQ==",
"username": "anonymous"
}
},
The text was updated successfully, but these errors were encountered: