typegoose-patterns

Installation
SKILL.md

TypeGoose Model Patterns

Basic Model

import { modelOptions, prop, Severity, index } from '@typegoose/typegoose'
import { BaseModel } from '~/shared/model/base.model'

export const MY_COLLECTION_NAME = 'my_items'

@modelOptions({
  options: {
    customName: MY_COLLECTION_NAME,
    allowMixed: Severity.ALLOW,
  },
})
export class MyModel extends BaseModel {
  @prop({ required: true })
  name!: string
Installs
1
Repository
mx-space/core
GitHub Stars
535
First Seen
Mar 29, 2026
typegoose-patterns — mx-space/core