Views total pages

Created on 27 August 2023, almost 2 years ago
Updated 25 January 2024, over 1 year ago

Problem/Motivation

Is there a way to retrieve the total number of pages when running an query on a view. Below is my query

query SearchContent($search_text: String, $page: ID) {
  entityById(entityType: VIEW, id: "search_content") {
    ... on View {
      executable(displayId: "default") {
        ... on ViewExecutableSearchContentDefault {
          execute(
            searchApiFulltext: $search_text
            page: $page
          ) {
            rows {
              id
              label
            }
          }
        }
      }
    }
  }
}

But I can't find the field to put to retrieve the total number of pages

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇲🇺Mauritius whiz11

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024