Skip to main content
Module

x/deno_slack_data_mapper/mod.ts>DataMapper

A handy way to manage data in Slack's next-generation platform datastores
Go to Latest
class DataMapper
import { DataMapper } from "https://deno.land/x/deno_slack_data_mapper@2.5.0/mod.ts";

Constructors

new
DataMapper(args: DataMapperInitArgs<Def>)

Methods

countAll(): Promise<CountResponse>
countBy(args: DataMapperExpressionCountArgs<Def> | RawExpression | SimpleExpression<Def>): Promise<CountResponse>
deleteAllByIds(args: DataMapperIdsQueryArgs | string[]): Promise<BulkDeleteResponse>
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>>