Skip to content
@legacy

Documentation / @warp-drive/legacy / LegacyModelAndNetworkStoreSetupOptions

Interface: LegacyModelAndNetworkStoreSetupOptions<T>

Defined in: warp-drive-packages/legacy/src/index.ts:63

Extends

  • _LegacyStoreSetupOptions<T>

Type Parameters

T

T extends Cache

Properties

cache()

ts
cache: (capabilities) => T;

Defined in: warp-drive-packages/core/declarations/index.d.ts:29

The Cache implementation to use

Parameters

capabilities

CacheCapabilitiesManager

Returns

T

Inherited from

ts
_LegacyStoreSetupOptions.cache

CAUTION_MEGA_DANGER_ZONE_extensions?

ts
optional CAUTION_MEGA_DANGER_ZONE_extensions: CAUTION_MEGA_DANGER_ZONE_Extension[];

Defined in: warp-drive-packages/core/declarations/index.d.ts:73

Extensions to use with resources, objects and arrays to provide custom behaviors and capabilities that are not described by Schema.

This feature should only be used during a transition period to support migrating towards schemas from existing Model and ModelFragments implementations.

Inherited from

ts
_LegacyStoreSetupOptions.CAUTION_MEGA_DANGER_ZONE_extensions

derivations?

ts
optional derivations: Derivation[];

Defined in: warp-drive-packages/core/declarations/index.d.ts:57

Derivations to use for derived fields.

Inherited from

ts
_LegacyStoreSetupOptions.derivations

handlers?

ts
optional handlers: Handler[];

Defined in: warp-drive-packages/core/declarations/index.d.ts:43

The request handlers to use. Fetch will automatically be added to the end of the handler chain and CacheHandler will automatically be added as the cache handler.

Inherited from

ts
_LegacyStoreSetupOptions.handlers

hashFns?

ts
optional hashFns: HashFn[];

Defined in: warp-drive-packages/core/declarations/index.d.ts:65

Hash Functions to use for embedded object identity and polymorphic type calculations

Inherited from

ts
_LegacyStoreSetupOptions.hashFns

legacyRequests?

ts
optional legacyRequests: false;

Defined in: warp-drive-packages/legacy/src/index.ts:73

if true, all legacy request methods and supporting infrastructure will be available on the store.


linksMode

ts
linksMode: false;

Defined in: warp-drive-packages/legacy/src/index.ts:68

If true, it is presumed that no requests require use of the LegacyNetworkHandler and associated adapters/serializer methods.


modelFragments?

ts
optional modelFragments: boolean;

Defined in: warp-drive-packages/legacy/src/index.ts:47

Whether to include support for ModelFragments migrations.

Inherited from

ts
_LegacyStoreSetupOptions.modelFragments

policy?

ts
optional policy: CachePolicy;

Defined in: warp-drive-packages/core/declarations/index.d.ts:37

The Cache policy to use.

Defaults to DefaultCachePolicy configured to respect Expires, X-WarpDrive-Expires, and Cache-Control headers with a fallback to 30s soft expiration and 15m hard expiration.

Inherited from

ts
_LegacyStoreSetupOptions.policy

schemas?

ts
optional schemas: (
  | ResourceSchema
  | ObjectSchema)[];

Defined in: warp-drive-packages/legacy/src/index.ts:42

Inherited from

ts
_LegacyStoreSetupOptions.schemas

traits?

ts
optional traits: Trait[];

Defined in: warp-drive-packages/core/declarations/index.d.ts:53

Traits to use with , | Resource Schemas

Inherited from

ts
_LegacyStoreSetupOptions.traits

transformations?

ts
optional transformations: Transformation[];

Defined in: warp-drive-packages/core/declarations/index.d.ts:61

Transformations to use for transforming fields.

Inherited from

ts
_LegacyStoreSetupOptions.transformations

Released under the MIT License.