Skip to content

64 bit integers #295

Closed
Closed
@Coolaswa

Description

@Coolaswa

I am interfacing with the graphQL API of monday.com. Their item IDs have recently passed 2^31 and when I request such an item gql trows an error:

Int cannot represent non 32-bit signed integer value: 2300634791

GraphQL request:2:18
1 | {
2 |     boards (ids: 2300634791) {
  |                  ^
3 |     items(limit:1000){

monday.com have a handy API tester where I can input my query directly, and the response comes back without issue, thus leading me to believe the issue is with gql. Now, I know of this issue in the graphQL spec: graphql/graphql-spec#73, but I am not sure it is relevant here.

To Reproduce
Steps to reproduce the behavior:
To interface with monday.com you need API authorization so I'm not sure I can provide this. But I assume trying to query a graphQL Int larger than 2^31 will reproduce this error.

Expected behavior
Since the monday.com API playground gives normal results I would expect the same result from gql.

System info:

  • OS: Windows 10
  • Python version: 3.9.9
  • gql version: 3.0.0
  • graphql-core version: 3.2.0

Thanks in advance for any help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions