---
title: HasCompareDigest - GraphQL Admin
description: |-
  Represents a summary of the current version of data in a resource.

  The `compare_digest` field can be used as input for mutations that implement a compare-and-swap mechanism.
api_version: 2026-04
source_url:
  html: https://shopify.dev/docs/api/admin-graphql/latest/interfaces/hascomparedigest
  md: https://shopify.dev/docs/api/admin-graphql/latest/interfaces/hascomparedigest.md
---

# Has​Compare​Digest

interface

Represents a summary of the current version of data in a resource.

The `compare_digest` field can be used as input for mutations that implement a compare-and-swap mechanism.

## Fields

* compare​Digest

  [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  non-null

  The data stored in the resource, represented as a digest.

***

##### Variables

```json
{
	"compareDigest": ""
}
```

##### Schema

```graphql
interface HasCompareDigest {
  compareDigest: String!
}
```