API reference

globalEntity

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

graphql
globalEntity(
  id: ID!
): GlobalEntity

Arguments

Name Type Description
id ID!

Returns

GlobalEntity

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