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(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
contactIdeq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
statuseq(),ne(),exists(),in(),hasSome(),ascending(),descending()
autoNotifiedeq(),ne(),exists(),in(),hasSome(),ascending(),descending()
_createdDateeq(),ne(),exists(),in(),hasSome(),lt(),le(),gt(),ge(),ascending(),descending()
itemUrleq(),ne(),exists(),in(),hasSome(),startsWith(),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