API reference

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.

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

Arguments

Name Type Description
class String
first UnsignedInt
after String

Returns

GlobalEntityPage

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 } }"}'