Skip to main content
Skip to main content
You're viewing the documentation for v1, which isn't the latest Medusa version.Latest documentation

OptionsQuery

The options to apply when retrieving an item.

Type parameters

TobjectRequired
PstringRequired

Properties

populatestring[]
Relations to populate in the retrieved items.
orderByOrder<T> | Order<T>[]
Fields to sort-order items by.
limitnumber
Limit the number of items retrieved in the list.
offsetnumber
The number of items to skip before the retrieved items in the list.
fieldsstring[]
The fields to include in each of the items.
groupBystring | string[]
Group results by a field or set of fields.
filtersboolean | string[] | Dictionary<boolean | Dictionary>
Filters to apply on the retrieved items.
Was this section helpful?