RepositoryServiceOptions
Defined in: repository-service.ts:4
Extended by
Section titled “Extended by”Properties
Section titled “Properties”fields?
Section titled “fields?”
optionalfields?:string[]
Defined in: repository-service.ts:13
Whitelist of queryable fields. When set, a where/sort/select key outside it throws BadRequest.
paginate?
Section titled “paginate?”
optionalpaginate?:object
Defined in: repository-service.ts:15
Pagination defaults. When set, find() applies default and caps $limit at max.
default
Section titled “default”default:
number
max:
number
schema?
Section titled “schema?”
optionalschema?:object
Defined in: repository-service.ts:11
Duck-typed JSON-Schema-ish object: { properties: { field: { type: "number" } } }.
Used only to coerce query-string values to their field types. A TypeBox entity
schema satisfies this shape — but this is structural on purpose: @mantlejs/mantle
depends on nothing.
properties?
Section titled “properties?”
optionalproperties?:Record<string, {type?:string; }>