Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
7 tasks done
incognos opened this issue Jan 31, 2022 · 0 comments
Open
7 tasks done

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

incognos opened this issue Jan 31, 2022 · 0 comments

Comments

@incognos
Copy link

incognos commented Jan 31, 2022

Prerequisites

  • Is it a bug?
  • Is it a new feature?
  • Is it a a question?
  • Can you reproduce the problem?
  • Are you running the latest version?
  • Did you check for similar issues?
  • Did you perform a cursory search?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant