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

BUG - File sizes larger than the max 32 bit allocation cause a GraphQL error #796

Open
justincorrigible opened this issue Aug 8, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@justincorrigible
Copy link
Member

justincorrigible commented Aug 8, 2022

file_size gives the error Int cannot represent non 32-bit signed integer value: 5326545745 when dealing with files larger than the non-signed 32 bit value (4294967296). This is due to a GraphQL design choice not to support long or bigInt.

image

This issue was encountered and "solved" in the past (#12), but as the solution was somewhat hacky, and not documented in the code, the fix was removed at some point when we added new data types supported by ES. The right solution would be to add a custom scalar.
e.g. https://github.com/chadlieberman/graphql-type-long or https://www.npmjs.com/package/graphql-bigint

@justincorrigible justincorrigible added the bug Something isn't working label Aug 8, 2022
@justincorrigible
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant