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

fix: Update default ID scalar type to be string #146

Merged
merged 3 commits into from
Mar 20, 2024
Merged

Conversation

JoviDeCroock
Copy link
Member

Resolves #145

Summary

In the spec it is outlined that ID should always serialize to string https://spec.graphql.org/October2021/#sec-ID

Copy link

changeset-bot bot commented Mar 20, 2024

🦋 Changeset detected

Latest commit: 5a210a4

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kitten kitten changed the title ID should be string fix: Update default ID scalar type to be string Mar 20, 2024
Co-authored-by: Phil Pluckthun <phil@kitten.sh>
@JoviDeCroock JoviDeCroock enabled auto-merge (squash) March 20, 2024 13:56
@JoviDeCroock JoviDeCroock merged commit dc1783f into main Mar 20, 2024
1 check passed
@JoviDeCroock JoviDeCroock deleted the fix-id-scalar branch March 20, 2024 13:56
@github-actions github-actions bot mentioned this pull request Mar 20, 2024
@abdonrd
Copy link

abdonrd commented Mar 23, 2024

It would be nice if you could update the readme image.
It shows id: string | number;

https://github.com/0no-co/gql.tada?tab=readme-ov-file#-lets-take-a-look

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

Successfully merging this pull request may close these issues.

ID type should be string not string | number
3 participants