Skip to main content

@dapr/set_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.

codec

codec *CodecRef

The configured codec to use for encoding the state.

codecArgs

codecArgsany[]

The arguments for the codec, if any.

items

items *SetStateItem[]

The items to set in the store.

type SetStateItem

key

key *string (Value expression)

The key of the item to set.

forEach

forEachstring (Value expression)

an option expression to evaluate a.

value

valuestring (Data expression)

Optional data expression to tranform the data to set.

etag

etagstring (Value expression)

Etag value of the item to set

metadata

metadatastring (Data expression)

Optional data expression for the key's metadata.

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