Skip to content

JSON object default value causes panic #3146

Open

Description

Setting a JSON default value to an object type causes a panic.

type User {
  metadata: JSON @default(json: {one: 1})
}

Results in the following panic.

panic: runtime error: hash of unhashable type map[string]interface {}
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