query VariantDetail($variantId: Int!) {
  variant(id: $variantId) {
    ...VariantDetailFields
  }
}

fragment VariantDetailFields on VariantInterface {
  id
  name
  deprecated
  deprecationReason
  deprecationActivity {
    user {
      id
      displayName
      role
      profileImagePath(size: 32)
    }
    createdAt
    parsedNote {
      ...parsedCommentFragment
    }
  }
  feature {
    id
    name
    link
    deprecated
    flagged
  }
  variantAliases
  flags(state: OPEN) {
    totalCount
  }
  openRevisionCount
  comments {
    totalCount
  }
}
