graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.86k stars 838 forks source link

Allow omitted non-null arguments when a default value exists #601

Open ddebrunner opened 3 years ago

ddebrunner commented 3 years ago

Allow omission of a non-null argument type when a default value was specified.

E.g.

type Query {
    q(a:Int! = 0): String
}

should be able to be call q with no arguments.