location

Fetch location records matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
idStringNo

Filter by ID; pass the public API ID unless the field name says legacy ID.

nameStringNo
analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

LocationQueryResult

Query

query location(
  $id: String,
  $name: String,
  $analyze: Boolean
) {
  location(
    id: $id,
    name: $name,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...LocationFragment
    }
  }
}

Variables

{
  "id": "UmVjb3JkOjEyMzQ=",
  "name": "abc123",
  "analyze": true
}

Response

{
  "data": {
    "location": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": {id: "TG9jYXRpb246MTIzNA==", name: "A01-01-01"}
    }
  }
}