# globalEntity

> Public entities are readable by anyone; private entities require super user or read-only super user access (and otherwise appear not to exist).

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

```graphql
globalEntity(
  id: ID!
): GlobalEntity
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `id` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |

## Returns

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

## Example

```graphql
query GlobalEntity($id: ID!) {
  globalEntity(id: $id) {
    id
    class
    visibility
  }
}
```

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