interface WeivDataFilter<CItem> {
    and(query: WeivDataFilter<Extract<keyof CItem, string>>): WeivDataFilter<CItem>;
    between<K>(propertyName: K, rangeStart: CItem[K], rangeEnd: CItem[K], convertIds?: boolean): WeivDataFilter<CItem>;
    contains(propertyName: Extract<keyof CItem, string>, string: string): WeivDataFilter<CItem>;
    endsWith(propertyName: Extract<keyof CItem, string>, string: string): WeivDataFilter<CItem>;
    eq<K>(propertyName: K, value: CItem[K], convertIds?: boolean): WeivDataFilter<CItem>;
    ge<K>(propertyName: K, value: CItem[K]): WeivDataFilter<CItem>;
    gt<K>(propertyName: K, value: CItem[K]): WeivDataFilter<CItem>;
    hasAll<K>(propertyName: K, value: CItem[K][], convertIds?: boolean): WeivDataFilter<CItem>;
    hasSome<K>(propertyName: K, value: CItem[K][], convertIds?: boolean): WeivDataFilter<CItem>;
    isEmpty(propertyName: Extract<keyof CItem, string>): WeivDataFilter<CItem>;
    isNotEmpty(propertyName: Extract<keyof CItem, string>): WeivDataFilter<CItem>;
    le<K>(propertyName: K, value: CItem[K]): WeivDataFilter<CItem>;
    lt<K>(propertyName: K, value: CItem[K]): WeivDataFilter<CItem>;
    ne<K>(propertyName: K, value: CItem[K], convertIds?: boolean): WeivDataFilter<CItem>;
    not(query: WeivDataFilter<CItem>): WeivDataFilter<CItem>;
    or(query: WeivDataFilter<CItem>): WeivDataFilter<CItem>;
    startsWith(propertyName: Extract<keyof CItem, string>, string: string): WeivDataFilter<CItem>;
}

Type Parameters

  • CItem

Methods

  • Type Parameters

    • K extends string

    Parameters

    • propertyName: K

      The property whose value will be compared with rangeStart and rangeEnd.

    • rangeStart: CItem[K]

      The beginning value of the range to match against.

    • rangeEnd: CItem[K]

      The ending value of the range to match against.

    • OptionalconvertIds: boolean

      When enabled passed value will be converted to ObjectId from string. Defaults to false.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value is within a specified range.

  • Parameters

    • propertyName: Extract<keyof CItem, string>

      The property whose value will be compared with the string.

    • string: string

      The string to look for inside the specified property value.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value contains a specified string.

  • Parameters

    • propertyName: Extract<keyof CItem, string>

      The property whose value will be compared with the string.

    • string: string

      The string to look for at the end of the specified property value.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value ends with a specified string.

  • Type Parameters

    • K extends string

    Parameters

    • propertyName: K

      The property whose value will be compared with value.

    • value: CItem[K]

      The value to match against.

    • OptionalconvertIds: boolean

      When enabled passed value will be converted to ObjectId from string. Defaults to false.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value equals the specified value.

  • Type Parameters

    • K extends string

    Parameters

    • propertyName: K

      The property whose value will be compared with value.

    • value: CItem[K]

      The value to match against.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value is greater than or equal to the specified value.

  • Type Parameters

    • K extends string

    Parameters

    • propertyName: K

      The property whose value will be compared with value.

    • value: CItem[K]

      The value to match against.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value is greater than the specified value.

  • Type Parameters

    • K extends string

    Parameters

    • propertyName: K

      The property whose value will be compared with value.

    • value: CItem[K][]

      The values to match against.

    • OptionalconvertIds: boolean

      When enabled passed values will be converted to ObjectId from string. Defaults to false.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property values equals all of the specified value parameters.

  • Type Parameters

    • K extends string

    Parameters

    • propertyName: K

      The property whose value will be compared with value.

    • value: CItem[K][]

      The values to match against.

    • OptionalconvertIds: boolean

      When enabled passed values will be converted to ObjectId from string. Defaults to false.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value equals any of the specified value parameters.

  • Parameters

    • propertyName: Extract<keyof CItem, string>

      The the property in which to check for a value.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property does not exist or does not have any value.

  • Parameters

    • propertyName: Extract<keyof CItem, string>

      The property in which to check for a value.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property has any value.

  • Type Parameters

    • K extends string

    Parameters

    • propertyName: K

      The property whose value will be compared with value.

    • value: CItem[K]

      The value to match against.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value is less than or equal to the specified value.

  • Type Parameters

    • K extends string

    Parameters

    • propertyName: K

      The property whose value will be compared with value.

    • value: CItem[K]

      The value to match against.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value is less than the specified value.

  • Type Parameters

    • K extends string

    Parameters

    • propertyName: K

      The property whose value will be compared with value.

    • value: CItem[K]

      The value to match against.

    • OptionalconvertIds: boolean

      When enabled passed value will be converted to ObjectId from string. Defaults to false.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value does not equal the specified value.

  • Parameters

    • propertyName: Extract<keyof CItem, string>

      The property whose value will be compared with the string.

    • string: string

      The string to look for at the beginning of the specified property value.

    Returns WeivDataFilter<CItem>

    A WeivDataFilter cursor representing the refined filters.

    Refines a query or filter to match items whose specified property value starts with a specified string.