Skip to main content
Version: 0.17

Interface: RecordSchemaSettings

Settings used to initialze and/or upgrade schemas.

Properties​

models​

• Optional models: Dict<ModelDefinition>

Map of model definitions.

Defined in​

packages/@orbit/records/src/record-schema.ts:105


version​

• Optional version: number

Schema version. Defaults to 1.

Defined in​

packages/@orbit/records/src/record-schema.ts:81

Methods​

generateId​

â–¸ Optional generateId(model?): string

Function used to generate record IDs.

Parameters​

NameType
model?string

Returns​

string

Defined in​

packages/@orbit/records/src/record-schema.ts:86


pluralize​

â–¸ Optional pluralize(word): string

Function used to pluralize names.

deprecated

Parameters​

NameType
wordstring

Returns​

string

Defined in​

packages/@orbit/records/src/record-schema.ts:93


singularize​

â–¸ Optional singularize(word): string

Function used to singularize names.

deprecated

Parameters​

NameType
wordstring

Returns​

string

Defined in​

packages/@orbit/records/src/record-schema.ts:100