Search.../

queryServiceOptionsAndVariants( )

Developer Preview

Retrieves a list of serviceOptionsAndVariants, given the provided paging, filtering, and sorting.

Description

Query Service Options And Variants runs with these defaults, which you can override:

  • id is sorted in ASC order
  • cursorPaging.limit is 100

For a detailed list of supported filtering operations see supported filters.

To learn about working with Query endpoints, see API Query Language, Sorting and Paging, and Field Projection.

PROPERTYSUPPORTED FILTERS & SORTING
ideq(),in(),ne()
serviceIdeq(),in(),ne()
options.valuesexists()
options.values.ideq(),in(),ne()
variants.valuesexists()
variants.values.choices.optionIdhasSome()
variants.values.pricehasSome()

Syntax

function queryServiceOptionsAndVariants(): ServiceOptionsAndVariantsListQueryBuilder

queryServiceOptionsAndVariants Parameters

This function does not take any parameters.

Was this helpful?

queryServiceOptionsAndVariants example

Copy Code
1import { serviceOptionsAndVariants } from 'wix-bookings.v2';
2
3 async function queryServiceOptionsAndVariants() {
4 const { items } = serviceOptionsAndVariants.queryServiceOptionsAndVariants().find();
5 }
6