Search...
queryProducts( )
Developer Preview
Returns a list of up to 100 products, given the provided paging, sorting and filtering.
Description
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
name | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
slug | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
productType | eq() ,ne() ,exists() ,in() ,hasSome() ,ascending() ,descending() |
description | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() |
sku | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
price | eq() ,ne() ,exists() ,in() ,hasSome() ,ascending() ,descending() |
priceData.price | eq() ,ne() ,exists() ,in() ,hasSome() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
numericId | eq() ,ne() ,exists() ,in() ,hasSome() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
collectionIds | eq() ,ne() ,exists() ,in() ,hasSome() ,hasAll() |
lastUpdated | eq() ,ne() ,exists() ,in() ,hasSome() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
_createdDate | eq() ,ne() ,exists() ,in() ,hasSome() ,lt() ,le() ,gt() ,ge() |
Syntax
function queryProducts(): ProductsQueryBuilder
queryProducts Parameters
This function does not take any parameters.
Returns
Return Type:
Was this helpful?
queryProducts example
Copy Code
1import { products } from 'wix-stores.v2';23 async function queryProducts() {4 const { items } = products.queryProducts().find();5 }6