> ## Documentation Index
> Fetch the complete documentation index at: https://help.csvbox.io/llms.txt
> Use this file to discover all available pages before exploring further.

# MongoDB

> Import CSV files or Excel sheets into your MongoDB collections.

Import CSV files or Excel sheets into your MongoDB collections.

<Steps>
  <Step title="Choose MongoDB as the destination">
    Select **MongoDB** as your destination type.
  </Step>

  <Step title="Connect your database">
    Enter your MongoDB credentials to establish a secure connection.
  </Step>

  <Step title="Set the target collection">
    Specify the name of the collection where the data should be inserted.
  </Step>

  <Step title="Map columns to fields">
    Match the columns in your sheet to the corresponding fields in your MongoDB collection.
  </Step>

  <Step title="Define field data types">
    Assign appropriate data types to each field to ensure accurate data import.
  </Step>

  <Step title="Map custom attributes (optional)">
    You can also map custom attributes from the CSV to specific fields in your collection.
  </Step>
</Steps>

Once set up, all submitted CSV data is automatically inserted into your MongoDB collection.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.