---
title: "MongoDB value accessors"
slug: "mongodb-value-accessors"
abstract: "Overview of the MongoDB value accessors in Sitecore Data Exchange Framework."
---
# MongoDB value accessors

This topic describes the value accessors that are included with the MongoDB provider for Data Exchange Framework.

The MongoDB provider is part of the standard Data Exchange Framework installation.

<details>
<summary><h2>Current document value accessor</h2></summary>

This value accessor provides the ability to read the source object if it is a BSON document.

This value accessor is used when you need to pass the entire BSON document to another component.

| Expected source/target object type | `MongoDB.Bson.BsonDocument` |
| --- | --- |
| Template location | *Data Exchange/Providers/MongoDB/Data Access/Value Accessors/MongoDB Current Document Value Accessor* |

> [!note]
> This value accessor is read-only.

### Template fields

This template has no fields on it.

</details>

<details>
<summary><h2>Document field value accessor</h2></summary>

This value accessor provides the ability to read a value from a field on a MongoDB document.

| Expected source/target object type | `MongoDB.Bson.BsonElement` or `MongoDB.Bson.BsonDocument` |
| --- | --- |
| Template location | *Data Exchange/Providers/MongoDB/Data Access/Value Accessors/MongoDB Document Field Value Accessor* |

> [!note]
> This value accessor is read-only.

### Template fields

| Field name | Description |
| --- | --- |
| **Field Name** | The name of the field whose value is read. |
| **BSON Field Value Reader** | The component used to convert the BSON value to a value that can be used outside of MongoDB. |

</details>