uuid

When using the old webhooks, you might receive resource IDs as numeric IDs. If you need any of those IDs in one of our new queries or mutations, you can use this query to retrieve the UUID corresponding to that resource or entity's numeric ID.

Arguments

ArgumentTypeRequiredDefaultDescription
legacy_idBigInt!Yes
entityEntityType!Yes
analyzeBooleanNo

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

Return Type

LegacyIdQueryResult

Query

query uuid(
  $legacy_id: BigInt!,
  $entity: EntityType!,
  $analyze: Boolean
) {
  uuid(
    legacy_id: $legacy_id,
    entity: $entity,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...LegacyIdFragment
    }
  }
}

Variables

{
  "legacy_id": BigInt,
  "entity": "Account",
  "analyze": true
}

Response

{
  "data": {
    "uuid": {
      "request_id": "abc123",
      "complexity": 987,
      "data": LegacyId
    }
  }
}