Skip to content

Default values when using DSLVariables. #302

Closed
@luisvicentesanchez

Description

@luisvicentesanchez

As an user, I sometimes write queries this way:

gql("""query SomeQuery($arg: Int = 100) {
  field(input=$arg) {
    ...
  }
}""")

That gives me some flexibility as I can execute this query without passing any variables. I haven't found how to do this using the DSL in the documentation. Is it fair to assume that this is not supported? It not, would it make sense to add support for it?

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