PedroBern / django-graphql-auth

Django registration and authentication with GraphQL.
https://django-graphql-auth.readthedocs.io/en/latest/
MIT License
329 stars 106 forks source link

have ME query return a non-Int PK field #143

Open incognos opened 2 years ago

incognos commented 2 years ago

Prerequisites

For more information, see the CONTRIBUTING guide.

Description

I am using a UUID for the primary key of my User Model and the pk field assumes an INT. I would like to be able to receive a string version of the UUID

Steps to Reproduce

Create a user model with a UUID4 as a primary key then query 'me' with the pk field

Expected behavior

Return the string version of the PK

Actual behavior

"errors": [
        {
            "message": "Int cannot represent non 32-bit signed integer value: 6e2bd98b-3440-4455-8a75-918042df32d6"
        }
    ],

Requirements

django==3.2.11 django-graphql-auth==0.3.16