Skip to content

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

Open

Description

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})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions