Skip to content

graphiql does not properly validate default values for required fields #719

Closed
@slisaasquatch

Description

@slisaasquatch

Here's the ticket for the new spec: graphql/graphql-spec#418
It allows the schema to be defined like this:

type Query {
  field(arg: Int! = 0): Int
}

For the example above, if you don't provide arg in the query, graphiql will consider the query invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions