Location · GraphQL query

positionSeen query

Retrieves a PositionSeen by its graph object id: a geographic coordinate where endpoints, and the devices and networks they see, were observed, with when they were seen there. An Endpoint lists its positions through positions, lastPosition, and primaryPosition; find them across the organization with graphSearch on the POSITION_SEEN object type. Returns a not-found error when no object has the id, and an error when the id belongs to another object type.

Response

Returns a PositionSeenPayload!

Arguments

Name Description
id - ID! The PositionSeen identifier.
mockOptions - MockDataInput Options for mock data generation. Options supported: none.

Example

Query

query positionSeen(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  positionSeen(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      seen {
        ...SeenOnlineFragment
      }
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      position {
        ...PositionFragment
      }
      location {
        ...LocationFragment
      }
      networks {
        ...NetworkConnectionFragment
      }
      devices {
        ...DeviceConnectionFragment
      }
      primaryLocationOfDevices {
        ...DeviceConnectionFragment
      }
      devicesSeenAt {
        ...DeviceConnectionFragment
      }
      endpoints {
        ...EndpointConnectionFragment
      }
      primaryLocationOfEndpoints {
        ...EndpointConnectionFragment
      }
      endpointsSeenAt {
        ...EndpointConnectionFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

Variables

{
  "id": "4",
  "mockOptions": MockDataInput
}

Response

{"data": {"positionSeen": {"node": PositionSeen}}}