So I’ve been developing a mobile application the p...
# orm-help
p
So I’ve been developing a mobile application the past 2 weeks that requires mongoDB or any noSQL database. Being it that prisma 2 does not yet support mongoDB i am being forced to develop with prisma 1. Does anybody know how difficult it is to migrate? for when mongoDB is available. And does anyone know how long prisma 1 will be supported?
f
Not sure about MongoDB but, at least for other DBs, they are making big efforts in creating migration guides and tools to make it smooth. I assume for Mongo will be similar. That said, I don’t think Mongo support will be ready any time soon but I guess it’s better to get an answer about that from the team.
r
Yes you're correct. Currently we are working on an upgrade guide for users in Prisma 1 with MySQL and Postgres to migrate to Prisma 2. MongoDB support is in our pipeline here but there's no concrete ETA for it yet.
p
Ok sounds good. My next question is how is the support for mongodb? I would really like to use prisma as I’ve used it before with a mySQL db and mongodb for a smaller application. Both worked great, but this would be a larger API and I’m wondering what type of issues I’d run into
r
Prisma 1 has a stable support of Mongo and there are examples here that you can look into as well. One thing to remember would be Prisma relies on a model structure, so you would have to follow the same in Mongo, you wouldn't be able to randomly add a field to any schema like Mongo allows you to by default.
p
ok great! so if I follow prisma’s data model everything should work as expected
r
Yeah
p
Looking at that example, I see embedded types and I’m wondering if there is any way to embed an array of objects