Skip to content

Commit

Permalink
docs: add note for materialize-mongodb _id field renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhbaker committed Nov 1, 2024
1 parent 426055a commit b270458
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ MongoDB is a NoSQL database. Its [data
model](https://www.mongodb.com/docs/manual/core/data-modeling-introduction/)
consists of **documents** (lightweight records that contain mappings of fields
and values) organized in **collections**. MongoDB documents have a mandatory
`_id` field that is used as the key of the collection.
`_id` field that is used as the key of the collection. Flow collection documents
are materialized as MongoDB documents with an `_id` field value based on the
Flow collection key.

:::info
If your Flow collection already has a field named `_id`, its value will
be present in the materialized MongoDB document as the field `_flow_id` to
prevent conflicts with the required `_id` field.
:::

## Prerequisites

Expand Down

0 comments on commit b270458

Please sign in to comment.