Skip to content
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

Default Variables in Inputs aren't generated. #73

Closed
Teddy-Schmitz opened this issue Apr 2, 2018 · 1 comment
Closed

Default Variables in Inputs aren't generated. #73

Teddy-Schmitz opened this issue Apr 2, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@Teddy-Schmitz
Copy link

Teddy-Schmitz commented Apr 2, 2018

Expected Behaviour

Default variables are generated and used when declaring an input.

Actual Behavior

Default variables aren't generated and are ignored.

Minimal graphql.schema and models to reproduce

schema {
    query: Query
}

type Query {
    Test(input: DateFilter): Boolean
}

enum DATE_FILTER_OP {
    EQ
    NEQ
    GT
    GTE
    LT
    LTE
}

input DateFilter {
    value: String!
    timezone: String = "UTC"
    op: DATE_FILTER_OP!
}

snippet of model generated

type DateFilter struct {
	Value    string
	Timezone *string
	Op       DATE_FILTER_OP
}
@vektah vektah added the bug Something isn't working label Apr 5, 2018
@caldempsey
Copy link

caldempsey commented Dec 4, 2019

Experiencing this issue on a build where expected values are resulting in de-reference errors, @vektah should this be working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants