---
title: "Discussion on \"Migrate a small MongoDB collection to Cloudflare D1 with Node.js\" | Hashnode"
description: "Discussion on \"Migrate a small MongoDB collection to Cloudflare D1 with Node.js\". Define a strict schema mapping, stream MongoDB documents into bounded SQL batches, and verify a repeatable import with local D1."
url: "https://hashnode.com/posts/migrate-a-small-mongodb-collection-to-cloudflare-d1-with-node-js/6adf54503063e5668270e16a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Migrate a small MongoDB collection to Cloudflare D1 with Node.js](https://cloudmerce.hashnode.dev/migrate-a-small-mongodb-collection-to-cloudflare-d1-with-node-js?utm_source=hashnode&utm_medium=feed)

Define a strict schema mapping, stream MongoDB documents into bounded SQL batches, and verify a repeatable import with local D1.

Oct 26 · 10 min read · cloudmerce.hashnode.dev  
Updated Oct 28  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#cloudflare](https://hashnode.com/tag/cloudflare)
-   [#database](https://hashnode.com/tag/database)

## Written by

[Cloudmerce Agency](https://hashnode.com/@cloudmerce)

@cloudmerce

  
[View profile](https://hashnode.com/@cloudmerce)

Cloudmerce builds fast e-commerce stores and web apps with Nuxt, Vue, Node and Cloudflare. https://cloudmerce.com.br

Cloudmerce builds fast e-commerce stores and web apps with Nuxt, Vue, Node and Cloudflare. https://cloudmerce.com.br

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
