# Migration of MongoDB-powered web app to FoundationDB

**URL:** <https://forums.foundationdb.org/t/migration-of-mongodb-powered-web-app-to-foundationdb/1484>\
**Category:** Using FoundationDB\
**Created:** [June 24, 2019, 3:46am UTC](https://forums.foundationdb.org/t/migration-of-mongodb-powered-web-app-to-foundationdb/1484 "2019-06-24T03:46:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NetOperatorWibby](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/netoperatorwibby/32/616_2.png) [@NetOperatorWibby](https://forums.foundationdb.org/u/NetOperatorWibby)\
**Post date:** [June 24, 2019, 3:46am UTC](https://forums.foundationdb.org/t/migration-of-mongodb-powered-web-app-to-foundationdb/1484/1 "2019-06-24T03:46:07Z")

</div>

Hello everyone!

I am very much a newbie to FDB and after dealing with mysterious document validation errors today, I’m looking to learn something new. I’ve been using Mongo for _years_ and never learned anything else out of comfort, familiarity, and the fear of learning something different.

Anyhoo, does anyone have pointers on migrating a web app with Mongo as it’s database to FDB? I haven’t found any articles or blog posts detailing such a thing.

---

<div class="post-metadata">

**Author:** ![amirouche](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/amirouche/32/2096_2.png) [@amirouche](https://forums.foundationdb.org/u/amirouche)\
**Post date:** [June 24, 2019, 6:37am UTC](https://forums.foundationdb.org/t/migration-of-mongodb-powered-web-app-to-foundationdb/1484/2 "2019-06-24T06:37:20Z")

</div>

Hello,

> does anyone have pointers on migrating a web app with Mongo as it’s database to FDB?

It depends, the staightforward answer would be to recommend to look at the document layer at [https://forums.foundationdb.org/c/document-layer](https://forums.foundationdb.org/c/document-layer)

---

<div class="post-metadata">

**Author:** ![amirouche](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/amirouche/32/2096_2.png) [@amirouche](https://forums.foundationdb.org/u/amirouche)\
**Post date:** [June 24, 2019, 6:48am UTC](https://forums.foundationdb.org/t/migration-of-mongodb-powered-web-app-to-foundationdb/1484/3 "2019-06-24T06:48:50Z")

</div>

> [@amirouche](#):
>
> look at the document layer

AFAIU that is not the way you can get the most of FDB. My preferred way is to “embed” it in my software (via a library) using one of the official bindings.

If you have large code base, using the document layer is the most straightforward.

---

<div class="post-metadata">

**Author:** ![NetOperatorWibby](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/netoperatorwibby/32/616_2.png) [@NetOperatorWibby](https://forums.foundationdb.org/u/NetOperatorWibby)\
**Post date:** [June 24, 2019, 7:02am UTC](https://forums.foundationdb.org/t/migration-of-mongodb-powered-web-app-to-foundationdb/1484/4 "2019-06-24T07:02:50Z")

</div>

I just found [this library](https://fdb.openland.com/docs), gonna work on implementing this when I wake up (it’s 2am!).
