Skip to main content

@webda/coreReadme | API


Class: StoreParameters

Store parameter

Extends

Constructors

new StoreParameters(params, service)

new StoreParameters(params, service): StoreParameters

Parameters

params: any

service: Service<any, Events>

Returns

StoreParameters

Overrides

ServiceParameters.constructor

Source

packages/core/src/stores/store.ts:456

Properties

additionalModels?

additionalModels?: string[]

Additional models

Allow this store to manage other models

Default

[]

Source

packages/core/src/stores/store.ts:405


asyncDelete

asyncDelete: boolean

async delete

Source

packages/core/src/stores/store.ts:409


defaultModel?

defaultModel?: boolean

When __type model not found, use the model If strict is setup this parameter is not used

Default

true

Source

packages/core/src/stores/store.ts:434


expose?

expose?: StoreExposeParameters

Expose the service to an urls

Deprecated

will probably be removed in 4.0 in favor of Expose annotation

Source

packages/core/src/stores/store.ts:416


forceModel?

forceModel?: boolean

If set, Store will ignore the __type

Default

false

Source

packages/core/src/stores/store.ts:440


model?

model?: string

Webda model to use within the Store

Default

"Webda/CoreModel"

Source

packages/core/src/stores/store.ts:397


modelAliases?

modelAliases?: Object

Model Aliases to allow easier rename of Model

Index signature

[key: string]: string

Source

packages/core/src/stores/store.ts:450


noCache?

noCache?: boolean

Disable default memory cache

Source

packages/core/src/stores/store.ts:454


openapi?

openapi?: OpenAPIWebdaDefinition

OpenAPI override

Schema Ignore

Inherited from

ServiceParameters.openapi

Source

packages/core/src/services/service.ts:260


slowQueryThreshold

slowQueryThreshold: number

Slow query threshold

Default

30000

Source

packages/core/src/stores/store.ts:446


strict?

strict?: boolean

Allow to load object that does not have the type data

If set to true, then the Store will only managed the defined _model and no model extending this one

Default

false

Source

packages/core/src/stores/store.ts:427


type

type: string

Type of the service

Inherited from

ServiceParameters.type

Source

packages/core/src/services/service.ts:251


url?

url?: string

URL on which to serve the content

Inherited from

ServiceParameters.url

Source

packages/core/src/services/service.ts:255