Module

services/query

Service to fetch data to the OVP using queries

Methods

# async inner getItemsByQuery(query, contextData, from, to, itemsPerPage, sortBy, segmentationValueopt) → {Promise.<Object>}

Parameters:
Name Type Attributes Description
query String

The query for the OVP.

contextData String

Context for being interpolated with the query.

from Number

Init index for retriving data.

to Number

Final index for retriving data.

itemsPerPage Number

Max number of item per query.

sortBy String

Key for ordering data.

segmentationValue string <optional>

optional segment to get a different config

Array of Items

Promise.<Object>