is there going to be a MongoDB integration soon?

I have to build a project using mongodb and i was really looking forward to do so with wasp. I recently noticed that MongoDB is not yet supported by wasp, so i wanted to know if it will be supported soon. if not, would you recommend using wasp with MongoDB anyways (the hard way)?
7 Replies
kapa.ai
kapa.ai7mo ago
Hi @tomas.morales. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information available, Wasp currently does not support MongoDB. However, there are discussions about expanding Prisma support, which includes MongoDB, but no specific timeline has been provided yet [source (https://github.com/wasp-lang/wasp/issues/641)]. In a Discord thread, a community member mentioned that while Prisma does support MongoDB, Wasp does not yet support it. They also mentioned the possibility of supporting it in the future [source (https://discord.com/channels/686873244791210014/1196714311633092668)]. As for using Wasp with MongoDB the hard way, it's not recommended since Wasp is heavily integrated with Prisma for the DB layer of the web app, and it doesn't yet utilize everything that Prisma offers, including MongoDB support. It's advisable to follow the updates on the Wasp GitHub page or join their Discord server to stay informed about future support for MongoDB. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @tomas.morales, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
martinsos
martinsos7mo ago
Ha not yet unfortunately -> we think it will not be too hard to add the support once we are ready, due to Prisma already supporting it, but we are postponing that for after coming out with 1.0, so probably won't be happening soon. Really focused now on getting the most out of React + Node + PostgreSQL. You could go the hard way hah, but I think that will be hard, you will loose quite some benefits! I am curious, why is it that important that you use MongoDB? I used mongodb in the past quite a bit and I am not in the camp "mongo is wrong postgresql is right", I am quite flexible regarding that opinion, both have their uses, but that said, for most typical use cases, you should be fine with any of the two, maybe even PostgreSQL being a bit "safer" default option.
tomas.morales
tomas.moralesOP7mo ago
its for a sensor based measuring system where we have lots of different sensors that measure different conditions in a farm. I thought MongoDB would be a better approach due to its time series built in functionalities and horizontal scaling "easyness"
martinsos
martinsos7mo ago
Interesting, and thanks for sharing! I don't know enough about this to be able to advise directly on this. I would expect that PostgreSQL can be also quite good for stuff like this or at least has an extension for it if not natively supported, but I can't say for sure. But I understand that mongo might be easier to horizontally scale + potentially more flexible regarding just stuffing that data into it. What you could do is use wasp with postgresqll as the main database for modeling most of your app logic, and have "manual" mongo database next to it where you keep the measurement data, if you feel it will be better served by the mongodb. Since it is external data, coming from the sensors, that might make sense. I think it depends on what you expect your app to look like, how much will you modeling that data vs how complex will the rest of the app be. If you expect the rest of app to be quite complex, then this direction might make quite some sense.
tomas.morales
tomas.moralesOP7mo ago
thanks! sorry i didnt see this reply. It does sound like a good approach but im still not sure as the rest of the app is pretty simple, the data part is the complex logic. Also, this is for a very important client of my software factory, so i still have a some doubts about using wasp for their app as it is still in beta
martinsos
martinsos7mo ago
That's fair, I won't be pushing you to go for Wasp as it truly is yet in beta, but if you decide to do so we are here to help out! And if not, I hope you do follow us to learn we get to 1.0 -> easy way is to subscribe for newsletter on our landing page (https://wasp-lang.dev/#signup), we send one every couple of months and my brother make sure they are not boring :D.
Wasp
Develop full-stack web apps without boilerplate.
From An unknown user
From An unknown user
tomas.morales
tomas.moralesOP7mo ago
Thanks!
Want results from more Discord servers?
Add your server