question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow Nullable action response

See original GitHub issue

Actions 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:closed
  • Created 3 years ago
  • Reactions:21
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
BenoitRanquecommented, Feb 16, 2022

Fix has been merged into main, should be out in next release, thank you @pranshi06

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found