Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FilterInterface

Filter builder, to be used with {@link RestRepository.filter}

Hierarchy

Index

Methods

boundingBox

  • boundingBox(xMin: number, yMin: number, xMax: number, yMax: number): FilterInterface
  • Return only items that are inside the specified bounding box.

    Parameters

    • xMin: number

      Lower X coordinate.

    • yMin: number

      Lower Y coordinate.

    • xMax: number

      Upper X coordinate.

    • yMax: number

      Upper Y coordinate.

    Returns FilterInterface

build

limit

  • Return the specified maximum number of items.

    Parameters

    • limit: number

      Maximum number of items to return.

    Returns FilterInterface

offset

  • Skip the specified number of items.

    Parameters

    • offset: number

      Number of items to skip.

    Returns FilterInterface

siteModel

  • Return only items that are inside the specified site model entity.

    Multiple entities can be provided, the item has to be contained in only one of them. Specify undefined to include items that are in no site model entity.

    This method can be called multiple times.

    Parameters

    Returns FilterInterface

sortBy

  • Sort results by the specific field name.

    Parameters

    • field: string

      Field name to sort by.

    Returns FilterInterface

sortOrder

  • Sort results in the specific order (ascending or descending).

    Parameters

    Returns FilterInterface

step

  • Regularly subsample the list of items returned.

    deprecated

    use with items with non-sequential IDs might lead to inconsistent results

    Parameters

    • step: number

      Step size, where 1 returns every item, 2 returns every other item, etc.

    Returns FilterInterface

Generated using TypeDoc