The entitiesPage() GraphQL is used to get the next and previous page when querying assets across LogScale views and repositories. It requires the cursor from the ??? or the entitiesPage() response, as well as the direction.

Syntax

Below is the syntax for entitiesPage():

graphql
entitiesPage(
      input: EntitiesPageInputType!
   ): SearchResult!

For the input, for EntitiesPageInputType, see the Given Datatypes section below. What to use for the return, for SearchResult is listed in the Results Datatypes section.

Given Datatypes

For EntitiesPageInputType, there are two parameters that may be given. They're listed below:

Table: EntitiesPageInputType

ParameterTypeRequired[a]DefaultDescription
cursorstringyes The cursor to use for entities pages.
directionEntitiesPageDirectionyes100The direction the cursor represents. For EntitiesPageDirection, enter Previous or Next.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.


Returned Datatypes

The returned datatype SearchResult has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: SearchResult

ParameterTypeRequired[a]DefaultDescription
totalResultsintegeryes The total number of results that matched the search query. Only pageSize elements will be returned.
data[EntitySearchResultEntity]yes The results of the search.
cursorstring  The cursor useds for going to the next or previous page.
hasNextPagebooleanyes Whether there is a next page. False indicates it's the last page.
hasPreviousPagebooleanyes Whether there is a previous page. False indicates it's the first page.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.