Documentation / @warp-drive/legacy / LegacyModelAndNetworkAndRequestStoreSetupOptions
Interface: LegacyModelAndNetworkAndRequestStoreSetupOptions<T>
Defined in: warp-drive-packages/legacy/src/index.ts:102
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.cacheCAUTION_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_extensionsderivations?
optional derivations: Derivation[];Defined in: warp-drive-packages/core/declarations/index.d.ts:57
Derivations to use for derived fields.
Inherited from
_LegacyStoreSetupOptions.derivationshandlers?
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.handlershashFns?
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.hashFnslegacyRequests
legacyRequests: true;Defined in: warp-drive-packages/legacy/src/index.ts:118
if true, all legacy request methods and supporting infrastructure will be available on the store.
If legacyRequests is true, linksMode must be false
Default
falselinksMode
linksMode: false;Defined in: warp-drive-packages/legacy/src/index.ts:109
If true, it is presumed that no requests require use of the LegacyNetworkHandler and associated adapters/serializer methods.
Default
falsemodelFragments?
optional modelFragments: boolean;Defined in: warp-drive-packages/legacy/src/index.ts:59
Whether to include support for ModelFragments migrations.
Default
falseInherited from
_LegacyStoreSetupOptions.modelFragmentspolicy?
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.policyschemas?
optional schemas: (
| ResourceSchema
| ObjectSchema)[];Defined in: warp-drive-packages/legacy/src/index.ts:52
The ResourceSchemas or ObjectSchemas of entities migrated to no longer use Model.
:::caution Model is still able to be used directly as a source of schema when using useLegacyStore, however, its reliance on EmberObject, classic computeds and resolver behaviors mean that Model will stop working when these things are deprecated in Ember. :::
Inherited from
_LegacyStoreSetupOptions.schemastraits?
optional traits: Trait[];Defined in: warp-drive-packages/core/declarations/index.d.ts:53
Traits to use with , | Resource Schemas
Inherited from
_LegacyStoreSetupOptions.traitstransformations?
optional transformations: Transformation[];Defined in: warp-drive-packages/core/declarations/index.d.ts:61
Transformations to use for transforming fields.
Inherited from
_LegacyStoreSetupOptions.transformations