Sitelet https://web.archive.org/web/20220411112951/https://github.com/directus/directus/issues/12051
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

BigInt in graphQL support #12051

Open
3 tasks done
kuzmi4 opened this issue Mar 9, 2022 · 0 comments
Open
3 tasks done

BigInt in graphQL support #12051

kuzmi4 opened this issue Mar 9, 2022 · 0 comments
Labels
API Bug Good First Issue

Comments

@kuzmi4
Copy link

@kuzmi4 kuzmi4 commented Mar 9, 2022 •

Preflight Checklist

Describe the Bug

In graphQL api impossible make query/mutate with BigInt values. Error will be like this: message: 'Int cannot represent non 32-bit signed integer value: "201381908480"'.

I think it bug, because on DB side we can do bigInt data and it,s normal, on REST api endpoint also we can work with BigInt data - it,s normal , but no with GraphQL

Fix for this - it is implement custom BigInt Scalar for BigInt data, or replace all default INT scalar with new BigInt

To Reproduce

Query/mutate by graphql API logn number to Int field

Errors Shown

Int cannot represent non 32-bit signed integer value: "****************"

What version of Directus are you using?

9.6.0

What version of Node.js are you using?

v16.13.0

What database are you using?

Postgres 13

What browser are you using?

Firefox

What operating system are you using?

Linux

How are you deploying Directus?

Docker

@kuzmi4 kuzmi4 added the Bug (Potential) label Mar 9, 2022
@rijkvanzanten rijkvanzanten added API Bug Good First Issue and removed Bug (Potential) labels Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Bug Good First Issue
Projects
None yet
Development

No branches or pull requests

2 participants