# AttachDocumentResult type


The result of [`attachDocument`](/chameleoon-max/mutation/attach-document) or [`attachInvoiceDocument`](/chameleoon-max/mutation/attach-invoice-document).

## Fields

### applied

`Boolean!`

`true` when this call made the document or its new version. `false` when it is a replay of an
earlier call with the same `requestId` and input, or the file has the same bytes as the
current version; then nothing changed.

### document

[`Document!`](/chameleoon-max/type/document)

The document as it is now.

## Used by

- [`attachDocument`](/chameleoon-max/mutation/attach-document) (mutation)
- [`attachInvoiceDocument`](/chameleoon-max/mutation/attach-invoice-document) (mutation)
