Full Document Before Change

Thanks for this! Upon further looking into it, I realized you can also set it in your realm app configuration files.

In you local realm app directory, navigate to data_sources/<service name>/config.json. To enable preimages on a collection called “myCollection”, your config file might look like:

{
  "name": "myMongoDBService",
  "type": "mongodb-atlas",
  "config": {
    "clusterName": "myCluster",
    "namespacePreimageConfigs": [
      {
        "collectionName": "myCollection",
        "dbName": "myDB",
        "recordPreimages": true
      }
    ],
    "readPreference": "primary",
    "wireProtocolEnabled": false
  },
  "version": 1
}
1 Like