You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding default arguments for Fields and Inputs will require syntactic change of the GraphQL queries, so at the run-in phase, the features are enough to implement them at the Directive level.
Usage:
directive@route(action: String!@default) onOBJECT | FIELD # ^^^^^ Adding "@default" directivetypeQuery {
users: [User]!@route("ExampleController@usersAction")
# ^^^ Use an optional argument name
}
Instead of:
directive@route(action: String!) onOBJECT | FIELDtypeQuery {
users: [User]!@route(action: "ExampleController@usersAction")
# ^^^^^^ Explicit specification of the argument
}
The text was updated successfully, but these errors were encountered:
Adding default arguments for
Fields
andInputs
will require syntactic change of the GraphQL queries, so at the run-in phase, the features are enough to implement them at theDirective
level.Usage:
Instead of:
The text was updated successfully, but these errors were encountered: