Skip to content

Commit 64c2f48

Browse files
Updated property on type to reflect the fact that it can return a null value (which it will if a key doesn't have any data in the state store). Only enabled nullable annotation on this file for now. (#1259)
Signed-off-by: Whit Waldo <[email protected]> Co-authored-by: Phillip Hoff <[email protected]>
1 parent ca0bffa commit 64c2f48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Dapr.Client/StateQueryResponse.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You may obtain a copy of the License at
1111
limitations under the License.
1212
*/
1313

14+
#nullable enable
1415
using System.Collections.Generic;
1516

1617
namespace Dapr.Client
@@ -75,9 +76,9 @@ public StateQueryItem(string key, TValue data, string etag, string error)
7576
public string Key { get; }
7677

7778
/// <summary>
78-
/// The data of the the key from the matched query.
79+
/// The data of the key from the matched query.
7980
/// </summary>
80-
public TValue Data { get; }
81+
public TValue? Data { get; }
8182

8283
/// <summary>
8384
/// The ETag for the key from the matched query.

0 commit comments

Comments
 (0)