Skip to main content
Version: Next

DevDataStore.save()

Home > @backstage/backend-dev-utils > DevDataStore > save

Save data to the data store.

Signature:

save<T>(key: string, data: T): Promise<{
saved: boolean;
}>;

Parameters

ParameterTypeDescription
keystringThe key used to identify the data.
dataTThe data to save. The data will be serialized using advanced IPC serialization.

Returns:

Promise<{ saved: boolean; }>

A promise that resolves to a result object that indicates whether the data was saved.