Skip to main content
Version: v2

StagedSchemaUpgradePolicy Interface

Policy controlling which staged schema upgrades are included when generating stored schema from a view schema.

This API is provided as an alpha preview and may change without notice.

To use, import via fluid-framework/alpha.

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

Input

This type is "input," meaning that code outside of the library defining it should not read from it. Future versions of this type may add optional members or make typing of members more general.

Signature

export interface StagedSchemaUpgradePolicy

Properties

PropertyAlertsModifiersDefault ValueTypeDescription
includeAlreadyEnabledUpgradesAlphaoptional, readonlytruebooleanWhether schema upgrades should include staged upgrades that are already enabled in the document's stored schema.

Methods

MethodAlertsReturn TypeDescription
includeStaged(upgrade)AlphabooleanDetermines whether to include staged allowed types in the resulting stored schema.
includeStagedOptional(upgrade)AlphabooleanDetermines whether to treat a staged optional field as optional (rather than required) in the resulting stored schema.

Property Details

includeAlreadyEnabledUpgrades

Whether schema upgrades should include staged upgrades that are already enabled in the document's stored schema.

This API is provided as an alpha preview and may change without notice.

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

Signature

readonly includeAlreadyEnabledUpgrades?: boolean;

Type: boolean

Method Details

includeStaged

Determines whether to include staged allowed types in the resulting stored schema.

This API is provided as an alpha preview and may change without notice.

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

Signature

includeStaged(upgrade: SchemaUpgrade): boolean;

Remarks

Due to caching, the behavior of this function must be pure.

Parameters

ParameterTypeDescription
upgradeSchemaUpgrade

Returns

Return type: boolean

includeStagedOptional

Determines whether to treat a staged optional field as optional (rather than required) in the resulting stored schema.

This API is provided as an alpha preview and may change without notice.

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

Signature

includeStagedOptional(upgrade: SchemaUpgrade): boolean;

Remarks

Due to caching, the behavior of this function must be pure.

Parameters

ParameterTypeDescription
upgradeSchemaUpgrade

Returns

Return type: boolean