# PageInfo

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/objects/page-info


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
type PageInfo {
  hasPrevPage: Boolean! @deprecated
  currentPage: Int!
  lastPage: Int!
  totalItems: Int!
  hasNextPage: Boolean!
  hasPreviousPage: Boolean!
  startCursor: String
  endCursor: String
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>PageInfo.<b>hasPrevPage</b></code>](#)<Bullet />[`Boolean!`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--deprecated badge--secondary" text="deprecated"/> <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> :::caution DEPRECATED
> Use hasPreviousPage instead for cursor pagination
> :::
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>PageInfo.<b>currentPage</b></code>](#)<Bullet />[`Int!`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Use with "page" and "pageSize" arguments only
> 

#### [<code style={{ fontWeight: 'normal' }}>PageInfo.<b>lastPage</b></code>](#)<Bullet />[`Int!`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Use with "page" and "pageSize" arguments only
> 

#### [<code style={{ fontWeight: 'normal' }}>PageInfo.<b>totalItems</b></code>](#)<Bullet />[`Int!`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Use with "page" and "pageSize" arguments only
> 

#### [<code style={{ fontWeight: 'normal' }}>PageInfo.<b>hasNextPage</b></code>](#)<Bullet />[`Boolean!`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Use with "cursor" argument only
> 

#### [<code style={{ fontWeight: 'normal' }}>PageInfo.<b>hasPreviousPage</b></code>](#)<Bullet />[`Boolean!`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Use with "cursor" argument only
> 

#### [<code style={{ fontWeight: 'normal' }}>PageInfo.<b>startCursor</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Use with "cursor" argument only
> 

#### [<code style={{ fontWeight: 'normal' }}>PageInfo.<b>endCursor</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Use with "cursor" argument only
> 

### Member Of

[`AccessCodeScansConnection`](/organizer/content-api/graphql-event-api-schema/objects/access-code-scans-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`CommunitiesConnection`](/organizer/content-api/graphql-event-api-schema/objects/communities-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`CommunityFieldValuesByDefinitionConnection`](/organizer/content-api/graphql-event-api-schema/objects/community-field-values-by-definition-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`CommunityViewsConnection`](/organizer/content-api/graphql-event-api-schema/objects/community-views-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`ContactLeadsConnection`](/organizer/content-api/graphql-event-api-schema/objects/contact-leads-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`DocumentsResult`](/organizer/content-api/graphql-event-api-schema/objects/documents-result)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`EventPeopleConnection`](/organizer/content-api/graphql-event-api-schema/objects/event-people-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`EventsConnection`](/organizer/content-api/graphql-event-api-schema/objects/events-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`ExhibitorMeetingSlotsConnection`](/organizer/content-api/graphql-event-api-schema/objects/exhibitor-meeting-slots-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`ExhibitorsConnection`](/organizer/content-api/graphql-event-api-schema/objects/exhibitors-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`ListEventPeopleResult`](/organizer/content-api/graphql-event-api-schema/objects/list-event-people-result)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`ListEventViewsResult`](/organizer/content-api/graphql-event-api-schema/objects/list-event-views-result)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`LocationConnection`](/organizer/content-api/graphql-event-api-schema/objects/location-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`MeetingConfirmLeadsConnection`](/organizer/content-api/graphql-event-api-schema/objects/meeting-confirm-leads-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`MeetingsResult`](/organizer/content-api/graphql-event-api-schema/objects/meetings-result)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`PlanningBookmarkLeadsConnection`](/organizer/content-api/graphql-event-api-schema/objects/planning-bookmark-leads-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`ProductCategoriesConnection`](/organizer/content-api/graphql-event-api-schema/objects/product-categories-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`ProductsConnection`](/organizer/content-api/graphql-event-api-schema/objects/products-connection)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`PushNotificationConnection`](/organizer/content-api/graphql-event-api-schema/objects/push-notification-connection)  <Badge class="badge badge--secondary" text="object"/>
