开发教程API 文档常见问题Version: 6.4Methods
Parameters
Returns MergeSelected<Entity, Naked, keyof Data & string>
- getSchema(): undefined | string
Returns undefined | string
- init(options?: FindOneOptions<Entity, Hint, Fields, Excludes>): Promise<null | Loaded<Entity, Hint, Fields, Excludes>>
Parameters
Returns Promise<null | Loaded<Entity, Hint, Fields, Excludes>>
Parameters
populate: false | AutoPath<Entity, Hint, never, 9>[]
Returns Promise<Loaded<Entity, Hint>>
- populated(populated?: boolean): void
Parameters
populated: boolean = true
Returns void
- setSchema(schema?: string): void
- toObject(): EntityDTO<Entity>
- toObject(ignoreFields: never[]): EntityDTO<Entity>
- toObject(ignoreFields: Ignored[]): Omit<EntityDTO<Entity>, Ignored>