> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.mongodb.db.UpdatedDocument

- Component: `appmixer.mongodb.db.UpdatedDocument`
- Kind: Trigger
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.mongodb 1.4.1](https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1/component/appmixer.mongodb.db.UpdatedDocument>

Trigger when a document has been updated in a MongoDB collection.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Collection (`collection`) | text | Enter your collection name. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Document (`document`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.mongodb.db.UpdatedDocument",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "Trigger when a document has been updated in a MongoDB collection.",
  "private": false,
  "tick": true,
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:mongodb"
  },
  "state": {
    "persistent": true
  },
  "properties": {
    "schema": {
      "type": "object",
      "properties": {
        "collection": {
          "type": "string"
        }
      },
      "required": [
        "collection"
      ]
    },
    "inspector": {
      "inputs": {
        "collection": {
          "type": "text",
          "index": 1,
          "label": "Collection",
          "tooltip": "Enter your collection name."
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Document",
          "value": "document",
          "schema": {
            "type": "object",
            "example": {
              "_id": "64a7f2c9e4b0d1a2b3c4d5e6",
              "name": "John Doe",
              "email": "john.doe@example.com"
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
