dapr / dapr/dotnet-sdk

Is it possible to store state value as an object instead of a serialized string while persisting state?

Open
#783 3 comments 7 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
378
Avg merge
1d 22h
Merged PRs (30d)
5

Description

Hi!

I'm trying to save state in a MongoDB state store. When the state is saved using the .NET Dapr client (https://docs.dapr.io/developing-applications/sdks/dotnet/dotnet-client/#save--get-application-state), it stores the state value as a serialized string in the database.

However, if I save the same object using the Dapr HTTP Store API (https://docs.dapr.io/developing-applications/building-blocks/state-management/howto-get-save-state/#step-2-save-and-retrieve-a-single-state), the data is saved as an object.

Is it possible to use the .NET Dapr client to store the value as an object instead of a serialized string, like the Dapr HTTP Store API does?

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.