Allow Nullable action response
See original GitHub issueActions can be defined to have a nullable return type like so:
type Mutation {
authentication_refresh (
dummy: String
): AuthRefresh
}
Yet returning an empty object or empty body will throw an error. Nullable return types should either explicitly be disallowed, or not throw errors
Issue Analytics
- State:
- Created 3 years ago
- Reactions:21
- Comments:6 (4 by maintainers)
Top Results From Across the Web
c# - How do I pass a 'null' action - Stack Overflow
Pass in an empty action if you want to: DoExport((x, y) => { }). Second, you have to review your code, since passing...
Read more >Nullable reference types - Microsoft Learn
This article provides an overview of nullable reference types. You'll learn how the feature provides safety against null reference ...
Read more >Nullable Reference types in C# – Best practices | DotNetCurry
In C# 8, nullable reference types use the same syntax to give the option of declaring reference types as nullable (i.e. allowing a...
Read more >Null values in data action - Genesys Cloud Developer Center
Hi All, How can i get the null in my data action response? Currently if there are any null values, its not showing...
Read more >A complete guide to null safety in Kotlin - LogRocket Blog
The Kotlin implementation of the Elvis operator ? : allows you to return a default value when the original nullable variable is null...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Closed via https://github.com/hasura/graphql-engine/commit/be1395de310e5e86dc7534db17e7c297f337272c
Fix has been merged into main, should be out in next release, thank you @pranshi06