interface FilterOptions<P> {
    fields?: null | false | (keyof P)[];
    intersects?: string | LngLatBoundsArray | LngLatArray[];
    limit?: number;
    offset?: number;
    orderBy?: (string | keyof P)[];
    strategy?: "BBOX" | "BBOX+";
}

Type Parameters

  • P extends {
        [field: string]: any;
    } = {
        [field: string]: any;
    }

Hierarchy

  • FilterOptions

    Properties

    fields?: null | false | (keyof P)[]
    intersects?: string | LngLatBoundsArray | LngLatArray[]

    WKT polygon geometry

    limit?: number

    Limit (paginated) - max number of entities should be taken.

    offset?: number

    Offset (paginated) where from entities should be taken.

    orderBy?: (string | keyof P)[]

    set fields for order

    TODO: use typescript 4.1 template string type for map -${field}

    { "orderBy": ["field1", "-field2"] }
    
    strategy?: "BBOX" | "BBOX+"