Skip to content

Ability to set a default value to an input type #1379

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
Spriz opened this issue May 8, 2023 · 1 comment
Closed

Ability to set a default value to an input type #1379

Spriz opened this issue May 8, 2023 · 1 comment

Comments

@Spriz
Copy link

Spriz commented May 8, 2023

Is there some way to make the default values set in the input type directly work when using the schema-first approach? ✌️

input Pagination {
    first: Int! = 20 # This default value is *NOT* included in ResolveInfo
    after: String
    sort: String
    direction: String
}

type Query {
    getProjects(
        pagination: Pagination = { first: 20 } # This default value is included in ResolveInfo
    ): ProjectConnection!
}
@Spriz
Copy link
Author

Spriz commented May 8, 2023

Oh welp - my colleague just sent me #350

nvm! ✌️

@Spriz Spriz closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant