import { DataMapper } from "https://deno.land/x/deno_slack_data_mapper@2.6.2/data_mapper.ts";
Constructors
new
DataMapper(args: DataMapperInitArgs<Def>)Type Parameters
Def extends Definition
Methods
countAll(): Promise<CountResponse>
countBy(args: DataMapperExpressionCountArgs<Def> | RawExpression | SimpleExpression<Def>): Promise<CountResponse>
deleteAllByIds(args: DataMapperIdsQueryArgs | string[]): Promise<BulkDeleteResponse>
deleteById(args: DataMapperIdQueryArgs | string): Promise<DeleteResponse>
findAll(args?: PaginationArgs): Promise<QueryResponse<Def>>
findAllBy(args: DataMapperExpressionQueryArgs<Def> | RawExpression & PaginationArgs | SimpleExpression<Def> & PaginationArgs): Promise<QueryResponse<Def>>
findAllByIds(args: DataMapperIdsQueryArgs | string[]): Promise<BulkGetResponse<Def>>
findById(args: DataMapperIdQueryArgs | string): Promise<GetResponse<Def>>
findFirstBy(args: DataMapperFindFirstExpressionQueryArgs<Def> | RawExpression & PaginationArgs | SimpleExpression<Def> & PaginationArgs): Promise<QueryResponse<Def>>
save(args: DataMapperSaveArgs<Def>): Promise<PutResponse<Def>>