The Repository interface defines a series of model operation methods for adapting the CRUD operations of the data source.
Returns a list of models that match the query parameters.
find(options?: any): Promise<IModel[]>Returns a model that matches the query parameters. If there are multiple matching models, only the first one is returned.
findOne(options?: any): Promise<IModel>Returns the number of models that match the query parameters.
count(options?: any): Promise<Number>Returns the list and count of models that match the query parameters.
findAndCount(options?: any): Promise<[IModel[], Number]>Creates a model data object.
create(options: any): voidUpdates a model data object based on the query conditions.
update(options: any): voidDeletes a model data object based on the query conditions.
destroy(options: any): void