Skip to main content
This guide is specific to setting up a data loader with MongoDB. To learn more about data loaders in general, read the general article.

Connect to your database

To get started, go to the data loaders page in Hyperline, create a new connection and select MongoDB in the dropdown list.
To set up the MongoDB connector, you need a valid database URL. You can also pass additional parameters within the URL if you need custom options.

Load your data

Create a new data loader directly below the new connection. Hyperline asks you to provide a JSON query. Your query needs to include a collection attribute pointing to your base collection. Unlike traditional SQL providers, MongoDB doesn’t allow direct aggregation queries without a default collection. A simple query to load 3 fields from a collection would typically look like this. Everything outside of “collection” must be a valid MongoDB query field (you can use aggregate, lookups, filters…). Hyperline parses the JSON from your input and transforms it into a valid MongoDB query to run on the connected server.
Make sure to include an id, customerId and timestamp field with the correct casing.