Skip to content

required arguments with default values shouldn't be required in operation variables #50

@awinograd

Description

@awinograd
type Mutation {
  mutate(foo: String!, bar: String! = "asdf"): Boolean!
}
mutation(m => [
  m.mutate({
    foo: "Hi",
    // ^... ts errors because bar is missing but it shouldn't be necessary due to default value.
  })
])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions