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

Default value with JSON numbers produces non-deterministic results #3157

Open
nasdf opened this issue Oct 18, 2024 · 0 comments
Open

Default value with JSON numbers produces non-deterministic results #3157

nasdf opened this issue Oct 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nasdf
Copy link
Member

nasdf commented Oct 18, 2024

Documents created with the default value in the schema below will produce different docIDs when used in combination with the HTTP or CLI client because of differences in GQL, JSON, and CBOR encodings.

type User {
  custom: JSON @default(json: {value: 1})
}
@nasdf nasdf added the bug Something isn't working label Oct 18, 2024
@nasdf nasdf changed the title Default value with JSON numbers can produce non-deterministic results Default value with JSON numbers produces non-deterministic results Oct 18, 2024
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