/ Get started / Quickstart
Docs/Get started/Quickstart

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 read role on the database you want to copy.
  • A PostgreSQL user with CREATE and INSERT on the target schema.
  • Both databases reachable from the internet, or with NoSQLSync allowed through your firewall. See Security & networking.

Run your first migration

  1. Connect your source

    Open Connections and click Connect source. Pick MongoDB and paste your connection string:

    mongodb+srv://reader:[email protected]/app

    Click Test. NoSQLSync connects, lists your databases and reports the latency. Save the connection once the test passes.

  2. Connect your target

    Click Connect target, pick PostgreSQL (or Supabase, Neon, RDS…) and paste its connection string:

    postgres://writer:[email protected]:5432/analytics
  3. 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.

  4. 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.

  5. Start and watch

    Start the migration. It moves from queued to running, and the detail page streams logs and row counts as batches land. When it reaches done, your table is ready to query:

    psql
    SELECT count(*) FROM users;
    SELECT email, address_city, created_at FROM users LIMIT 5;
  6. Validate

    Click Validate on the migration to compare row counts and checksums of a sample of rows between source and target. See Validation.

✓
Prefer code?

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.