# globalEntities

> Without a class filter super user or read-only super user access is required. With a class filter, other callers see only public entities.

Source: https://docs.gastrogate.io/docs/api/queries/globalEntities

```graphql
globalEntities(
  class: String
  first: UnsignedInt
  after: String
): GlobalEntityPage
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `class` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md) |  |
| `first` | [`UnsignedInt`](https://docs.gastrogate.io/docs/api/types/UnsignedInt.md) |  |
| `after` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md) |  |

## Returns

[`GlobalEntityPage`](https://docs.gastrogate.io/docs/api/types/GlobalEntityPage.md)

## Example

```graphql
query GlobalEntities {
  globalEntities {
    edges {
      cursor
      node {
        id
        class
        visibility
      }
    }
    pageInfo {
      endCursor
      hasNextPage
    }
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "query { globalEntities { __typename } }"}'
```
