Quickstart
Copy a MongoDB collection into PostgreSQL. The same steps work for every supported source and target.
Before you begin
- A NoSQLSync account. New accounts start with a 14-day trial of the Team plan.
- A MongoDB user with the
readrole on the database you want to copy. - A PostgreSQL user with
CREATEandINSERTon the target schema. - Both databases reachable from the internet, or with NoSQLSync allowed through your firewall. See Security & networking.
Run your first migration
- Connect your source
Open Connections and click Connect source. Pick MongoDB and paste your connection string:
mongodb+srv://reader:[email protected]/appClick Test. NoSQLSync connects, lists your databases and reports the latency. Save the connection once the test passes.
- Connect your target
Click Connect target, pick PostgreSQL (or Supabase, Neon, RDS…) and paste its connection string:
postgres://writer:[email protected]:5432/analytics - Create the migration
Click New migration. The wizard has four steps:
- Source — choose the source connection.
- Target — choose the target connection.
- Collections — pick the database and collections to copy and name the target tables.
- Review — choose a mode and confirm.
Pick One-time mode for this walkthrough. You can switch to Live sync later.
- Check the schema
NoSQLSync samples your documents and proposes a column for every field. Open Schema mapper to rename columns, change types, or decide how nested objects and arrays are stored. The defaults are explained in Schema mapping.
- Start and watch
Start the migration. It moves from
queuedtorunning, and the detail page streams logs and row counts as batches land. When it reachesdone, your table is ready to query:psqlSELECT count(*) FROM users; SELECT email, address_city, created_at FROM users LIMIT 5; - Validate
Click Validate on the migration to compare row counts and checksums of a sample of rows between source and target. See Validation.
Everything above is available over the REST API. Create an API key in Settings → Developers → API keys and follow the API overview.
Next steps
- Core concepts — the vocabulary used in the rest of the docs.
- Live sync — keep the target up to date while your app keeps writing.
- Webhooks — get notified when a migration finishes or fails.