Skip to content

Default values when using DSLVariables. #302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
luisvicentesanchez opened this issue Feb 23, 2022 · 3 comments · Fixed by #322
Closed

Default values when using DSLVariables. #302

luisvicentesanchez opened this issue Feb 23, 2022 · 3 comments · Fixed by #322
Labels
type: feature A new feature

Comments

@luisvicentesanchez
Copy link

luisvicentesanchez commented Feb 23, 2022

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?

@leszekhanusz leszekhanusz added the type: feature A new feature label Feb 23, 2022
@leszekhanusz
Copy link
Collaborator

This is not supported for now and you're right, we should support it.

@leszekhanusz
Copy link
Collaborator

Please check PR #322

@leszekhanusz
Copy link
Collaborator

Fixed in v3.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants