Skip to main content

ExposeParameters

@webda/core • Readme | API


Interface: ExposeParameters

Expose parameters for the model

Properties​

restrict​

restrict: Object

You can select to not expose some methods like create, update, delete, get, query

Type declaration​

create?​

create?: boolean

Create a new object

delete?​

delete?: boolean

Delete an object

get?​

get?: boolean

Get a single object

operation?​

operation?: boolean

Do not create operations for the model

query?​

query?: boolean

Query the object

update?​

update?: boolean

Update an existing object

Includes PUT and PATCH

Source​

packages/core/src/models/coremodel.ts:192


root?​

root?: boolean

If model have parent but you still want it to be exposed as root in domain-like service: DomainService, GraphQL

It would create alias for the model in the root too

Source​

packages/core/src/models/coremodel.ts:188