Skip to main content

foundation-comms.datasource.setfilter

Home > @genesislcap/foundation-comms > Datasource > setFilter

Datasource.setFilter() method

Sets a filter on the datasource with the specified name, value, and type.

Signature:

setFilter?(name: string, value: any, type?: string): Promise<void>;

Parameters

Parameter

Type

Description

name

string

The name of the filter to set.

value

any

The value of the filter to set.

type

string

(Optional) The type of the filter to set.

Returns:

Promise<void>

A promise that resolves when the filter has been set.