in( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Refines a query to only match items where the specified property conatins any of the values in the provided array of values.

The in() function refines a InventoryItemsQueryBuilder to match only items where the specified propertyName is equal to any of the values in the provided array. Matching strings with in() is case-sensitive, so 'text' isn't equal to 'Text'.

Method Declaration
Copy
function in(propertyName: string, value: any): InventoryItemsQueryBuilder
Method Parameters
propertyNamestring

valueany
Returns
JavaScript
const query = inventoryItemsV3.queryInventoryItems.in( ["labelIds", "colors"], ["red", "blue", "purple"], );
Did this help?