Skip to content

the trait juniper::types::base::GraphQLType<__S> is not implemented for i64 #671

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

Closed
bugproof opened this issue May 27, 2020 · 2 comments
Closed
Labels
enhancement Improvement of existing features or bugfix

Comments

@bugproof
Copy link

bugproof commented May 27, 2020

How to use 64bit ints with #[derive(juniper::GraphQLObject)] ? E.g. I have IDs represented as u64

@bugproof bugproof added the enhancement Improvement of existing features or bugfix label May 27, 2020
@tyranron
Copy link
Member

@bugproof you should roll out a custom GraphQL scalar in your schema for that. GraphQL spec doesn't define any built-in scalars for i64/u64 by default.

@bugproof
Copy link
Author

graphql/graphql-spec#73

@bugproof bugproof reopened this May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing features or bugfix
Projects
None yet
Development

No branches or pull requests

2 participants