Skip to main content
Version: v2

IDataStore Interface

Exposes some functionality/features of a data store:

  • Handle to the data store's entryPoint
  • Fluid router for the data store
  • Can be assigned an alias
This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/runtime-definitions/legacy.

For more information about our API support guarantees, see here.

Signature​

export interface IDataStore

Properties​

PropertyAlertsModifiersTypeDescription
entryPointBetareadonlyIFluidHandleInternal<FluidObject>Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting with it.

Methods​

MethodAlertsReturn TypeDescription
trySetAlias(alias)BetaPromise<AliasResult>Attempt to assign an alias to the datastore. If the operation succeeds, the datastore can be referenced by the supplied alias and will not be garbage collected.

Property Details​

entryPoint​

Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting with it.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly entryPoint: IFluidHandleInternal<FluidObject>;

Type: IFluidHandleInternal<FluidObject>

Method Details​

trySetAlias​

Attempt to assign an alias to the datastore. If the operation succeeds, the datastore can be referenced by the supplied alias and will not be garbage collected.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

trySetAlias(alias: string): Promise<AliasResult>;

Parameters​

ParameterTypeDescription
aliasstringGiven alias for this datastore.

Returns​

A promise with the AliasResult

Return type: Promise<AliasResult>