Skip to main content

@dapr/get_state

Description​

DatabaseSource code

TODO

Options​

resource​

resource *​ResourceRef

The name of the Dapr client resource.

store​

store *​string

Name of state store to invoke.

key​

key *​string (Value expression)

The key to get.

codec​

codec *​CodecRef

The configured codec to use for decoding the state.

codecArgs​

codecArgs​any[]

The arguments for the codec, if any.

notFoundError​

notFoundError *​string

The error to return if the key is not found.

concurrency​

concurrency *​Concurrency

The desired concurrency level

consistency​

consistency *​Consistency

The desired consistency level

enum Concurrency​

undefined​

undefined​

Undefined value for state concurrency

firstWrite​

firstWrite​

First write concurrency value

lastWrite​

lastWrite​

Last write concurrency value

enum Consistency​

undefined​

undefined​

Undefined value for state consistency

eventual​

eventual​

Eventual state consistency value

strong​

strong​

Strong state consistency value