Skip to content

Conversation

@bramvanderholst
Copy link
Contributor

When a default value is set, it can no longer be optional, nullable or nullish, otherwise the default value won't actually be used.

@AndKiel
Copy link

AndKiel commented Jun 13, 2024

You can have field: Int = 15 as well as field: Int! = 15 - one would allow passing explicit null, one would not. Default is just a default, the type itself is defined as nullable or not. Having a default value has no impact on the schema type.

@Code-Hex
Copy link
Owner

This PR is closed as it appears to be suspended. If you have any questions, I would appreciate it if you could submit the PR again!

@Code-Hex Code-Hex closed this Jun 15, 2024
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

Successfully merging this pull request may close these issues.

3 participants