Model.create()
create(docs: Array<ModelProps<T> | T>): Promise<T[]>;
create(doc: ModelProps<T> | T): Promise<T>;Model.find()
find(filter: Filter<T> = {}, options?: FindOptions): FindQuery<T>| Parameter | Type | Description |
|---|---|---|
| filter | Filter<T> | Filter the mongodb query. See more here |
| options | FindOptions | Filter the mongodb query. See more here |
- Returns
FindQuery<T>
[WIP]