Function: rbacSchemas()
ts
function rbacSchemas(): object;Defined in: packages/mongoose/src/models.ts:101
Schemas (unregistered). Useful to add plugins or hooks before calling createRbacModels.
The return type is spelled out rather than inferred: the inferred one names internal Mongoose types that differ between Mongoose 8 and 9, and the published .d.ts must work with both.
Returns
object
| Name | Type | Defined in |
|---|---|---|
modelHasPermission | Schema<ModelHasPermissionDoc> | packages/mongoose/src/models.ts:106 |
modelHasRole | Schema<ModelHasRoleDoc> | packages/mongoose/src/models.ts:105 |
permission | Schema<PermissionDoc> | packages/mongoose/src/models.ts:102 |
role | Schema<RoleDoc> | packages/mongoose/src/models.ts:103 |
roleHasPermission | Schema<RoleHasPermissionDoc> | packages/mongoose/src/models.ts:104 |
