Search.../

queryBackInStockNotificationRequests( )

Developer Preview

Creates a query to retrieve a list of back in stock notification requests.

Description

The queryBackInStockNotificationRequests() method builds a query to retrieve a list of back in stock notification requests and returns a RequestsQueryBuilder object.

The returned object contains the query definition, which is typically used to run the query using the find() method.

You can refine the query by chaining RequestsQueryBuilder methods onto the query. RequestsQueryBuilder methods enable you to sort, filter, and control the results that queryBackInStockNotificationRequests() returns.

The following RequestsQueryBuilder methods are supported for queryBackInStockNotificationRequests(). For a full description of the Requests object, see the object returned for the items property in RequestsQueryResult."

PROPERTYSUPPORTED FILTERS & SORTING
_ideq(),ne(),in(),startsWith(),exists(),ascending(),descending()
contactIdeq(),ne(),in(),startsWith(),exists(),ascending(),descending()
statuseq(),ne(),in(),exists(),ascending(),descending()
autoNotifiedeq(),ne(),in(),exists(),ascending(),descending()
_createdDateeq(),ne(),in(),gt(),ge(),lt(),le(),exists(),ascending(),descending()
itemUrleq(),ne(),in(),startsWith(),exists(),ascending(),descending()
Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Syntax

function queryBackInStockNotificationRequests(): RequestsQueryBuilder

queryBackInStockNotificationRequests Parameters

This function does not take any parameters.

Returns

Was this helpful?

queryBackInStockNotificationRequests example

Copy Code
1import { backInStockNotifications } from 'wix-ecom-backend';
2
3 async function queryBackInStockNotificationRequests() {
4 const { items } = backInStockNotifications.queryBackInStockNotificationRequests().find();
5 }
6