Skip to content
On this page

Home > @plaidev/karte-action-sdk > collection

collection() function

アクションテーブルを管理するメソッドを取得する

Signature:

typescript
declare function collection(config: CollectionConfig): {
    get(key: string | Array<string>, cb: (err: Error | null, items?: ActionTableResult | Array<ActionTableResult>) => void): void;
    getByQuery(query_name: string, params: ActionTableQueryParams, options: {
        ignore_fields?: string[];
    } | null | undefined, cb: (err: Error | null, items?: Array<ActionTableResult>) => void): void;
    set(key: string, value: string, cb: (err: Error | null) => void): void;
};

Parameters

ParameterTypeDescription
configCollectionConfigアクションテーブル設定情報

Returns:

{ get(key: string | Array<string>, cb: (err: Error | null, items?: ActionTableResult | Array<ActionTableResult>) => void): void; getByQuery(query_name: string, params: ActionTableQueryParams, options: { ignore_fields?: string[]; } | null | undefined, cb: (err: Error | null, items?: Array<ActionTableResult>) => void): void; set(key: string, value: string, cb: (err: Error | null) => void): void; }

メソッドを返します