---
title: HasCompareDigest - Customer API
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/customer/latest/interfaces/HasCompareDigest'
  md: 'https://shopify.dev/docs/api/customer/latest/interfaces/HasCompareDigest.md'
api_name: customer
api_type: graphql
type: interface
---

# 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/customer/latest/scalars/String)

  non-null

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

***

##### Variables

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

##### Schema

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