async hasNextPage() {
    const run = async () => {
      const criteria = await this.getQueryCriteria();
      const count = await this.Model.find(criteria)
        .select({ _id: 1 })
        .skip(this.first.value)
        .limit(1)
        .sort(this.sort.value)
        .collation(this.sort.collation)
        .comment(this.createComment('hasNextPage'))
        .countDocuments();
      return Boolean(count);
    };
    if (!this.promises.nextPage) {
      this.promises.nextPage = run();
    }
    return this.promises.nextPage;
  }
/**
   * Determines if another page is available.
   *
   * @return {Promise}
   */
Determines if another page is available.
@return {Promise}
Determines if another page is available . @return { Promise }
async hasNextPage() {
    const run = async () => {
      const criteria = await this.getQueryCriteria();
      const count = await this.Model.find(criteria)
        .select({ _id: 1 })
        .skip(this.first.value)
        .limit(1)
        .sort(this.sort.value)
        .collation(this.sort.collation)
        .comment(this.createComment('hasNextPage'))
        .countDocuments();
      return Boolean(count);
    };
    if (!this.promises.nextPage) {
      this.promises.nextPage = run();
    }
    return this.promises.nextPage;
  }
async hasNextPage ( ) { const run = async ( ) => { const criteria = await this . getQueryCriteria ( ) ; const count = await this . Model . find ( criteria ) . select ( { _id : 1 } ) . skip ( this . first . value ) . limit ( 1 ) . sort ( this . sort . value ) . collation ( this . sort . collation ) . comment ( this . createComment ( 'hasNextPage' ) ) . countDocuments ( ) ; return Boolean ( count ) ; } ; if ( ! this . promises . nextPage ) { this . promises . nextPage = run ( ) ; } return this . promises . nextPage ; }
Determines if another page is available.
Determines if another page is available .