Documentation / @warp-drive/legacy / LegacyModelAndNetworkAndRequestStoreSetupOptions
Interface: LegacyModelAndNetworkAndRequestStoreSetupOptions<T>
Defined in: warp-drive-packages/legacy/src/index.ts:76
Extends
_LegacyStoreSetupOptions
<T
>
Type Parameters
T
T
extends Cache
Properties
cache()
cache: (capabilities) => T;
Defined in: warp-drive-packages/core/declarations/index.d.ts:29
The Cache implementation to use
Parameters
capabilities
Returns
T
Inherited from
_LegacyStoreSetupOptions.cache
CAUTION_MEGA_DANGER_ZONE_extensions?
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
_LegacyStoreSetupOptions.CAUTION_MEGA_DANGER_ZONE_extensions
derivations?
optional derivations: Derivation[];
Defined in: warp-drive-packages/core/declarations/index.d.ts:57
Derivations to use for derived fields.
Inherited from
_LegacyStoreSetupOptions.derivations
handlers?
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
_LegacyStoreSetupOptions.handlers
hashFns?
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
_LegacyStoreSetupOptions.hashFns
legacyRequests
legacyRequests: true;
Defined in: warp-drive-packages/legacy/src/index.ts:86
if true, all legacy request methods and supporting infrastructure will be available on the store.
linksMode
linksMode: false;
Defined in: warp-drive-packages/legacy/src/index.ts:81
If true, it is presumed that no requests require use of the LegacyNetworkHandler and associated adapters/serializer methods.
modelFragments?
optional modelFragments: boolean;
Defined in: warp-drive-packages/legacy/src/index.ts:47
Whether to include support for ModelFragments migrations.
Inherited from
_LegacyStoreSetupOptions.modelFragments
policy?
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
_LegacyStoreSetupOptions.policy
schemas?
optional schemas: (
| ResourceSchema
| ObjectSchema)[];
Defined in: warp-drive-packages/legacy/src/index.ts:42
Inherited from
_LegacyStoreSetupOptions.schemas
traits?
optional traits: Trait[];
Defined in: warp-drive-packages/core/declarations/index.d.ts:53
Traits to use with , | Resource Schemas
Inherited from
_LegacyStoreSetupOptions.traits
transformations?
optional transformations: Transformation[];
Defined in: warp-drive-packages/core/declarations/index.d.ts:61
Transformations to use for transforming fields.
Inherited from
_LegacyStoreSetupOptions.transformations