Search...
hasPrev( )
Indicates whether the query has previous results.
Description
Syntax
function hasPrev(): boolean
hasPrev Parameters
This function does not take any parameters.
Returns
Return Type:
boolean
Was this helpful?
Get whether the query has previous results
Copy Code
1const hasPrev = results.hasPrev();2
Perform a query and get
hasPrev
from the resultCopy Code
1import { serviceOptionsAndVariants } from 'wix-bookings.v2';23export async function myQueryFunction() {4 const results = await serviceOptionsAndVariants5 .queryServiceOptionsAndVariants()6 .find();78 return results.hasPrev();9}10