Prerequisites
When you create a MongoDB connection in Prophecy, access permissions are tied to the credentials you use. This is because Prophecy uses your credentials to execute all data operations, such as reading from or writing to collections. To fully leverage a MongoDB connection in Prophecy, you need the following MongoDB permissions:Readfrom the collection defined in the connectionWriteto the collection defined in the connection
Feature support
The table below outlines whether the connection supports certain Prophecy features.Connection parameters
To create a connection with MongoDB, enter the following parameters:Data type mapping
When Prophecy processes data from MongoDB using SQL warehouses, it converts MongoDB-specific data types to formats compatible with your target warehouse. This table shows how MongoDB data types are transformed for Databricks, BigQuery, and Snowflake.Embedded MongoDB documents are inferred as Snowflake
VARIANT values when read through the Spark MongoDB connector. Although Snowflake supports the OBJECT type, inferred embedded documents map to VARIANT unless explicitly declared otherwise.Learn more in Supported data types.

