Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 822 Bytes

dao_methods.md

File metadata and controls

14 lines (14 loc) · 822 Bytes
  • Exists(field: Types.ObjectId | string): Promise
  • findPrivateById(id: Types.ObjectId): Promise<Model | null>
  • findPrivateByIdLean(id: Types.ObjectId): Promise<Model | null>
  • findPublicById(id: Types.ObjectId): Promise<Model | null>
  • findPublicByIdLean(id: Types.ObjectId): Promise<Model | null>
  • findFieldsById(id: Types.ObjectId, ...fields: (keyof Partial)[]): Promise<Model | null>
  • findFieldsByIdLean(id: Types.ObjectId, ...fields: (keyof Partial)[]): Promise<Model | null>
  • create(model: Model): Promise
  • update(moedl: Model): Promise
  • deleteById(id: Types.ObjectId): Promise
  • findManyByQuery(query: QueryOptions): Promise<Model[]>
  • findManyByQueryLean(query: QueryOptions): Promise<Model[]>