queryBackInStockNotificationRequests( )
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
."
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
contactId | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
status | eq() ,ne() ,exists() ,in() ,hasSome() ,ascending() ,descending() |
autoNotified | eq() ,ne() ,exists() ,in() ,hasSome() ,ascending() ,descending() |
_createdDate | eq() ,ne() ,exists() ,in() ,hasSome() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
itemUrl | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Authorization
Request
This endpoint does not take any parameters
Response Object
Returns an empty object.
Status/Error Codes
Was this helpful?
queryBackInStockNotificationRequests example
1import { backInStockNotifications } from 'wix-ecom-backend';23 async function queryBackInStockNotificationRequests() {4 const { items } = backInStockNotifications.queryBackInStockNotificationRequests().find();5 }6