Mongo support?
Hi, I just came across wasp and found it really straightfoward to use. However, when I then tried to move from the todoApp example to consuming some our data, I came across the lack of mongo support 😦 I wanted to use wasp to create nice views into our data, which is already in mongo, so I can't change that. Searching through discord I didn't see questions on Mongo in the last few months so I figured I'd give it a try and see if support is planned for soonish or not. Thanks for the great framework regardless of whether I'll be able to use it or not !
3 Replies
Hi @csd. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Currently, Wasp does not support MongoDB. Wasp uses Prisma as its database abstraction layer and while Prisma does have MongoDB support, Wasp has not yet implemented this functionality.
From the knowledge sources, I can see that:
1. Wasp currently only officially supports SQLite (for development) and PostgreSQL (for production) as database backends Docs > Data-model > Databases.
2. MongoDB support has been acknowledged as a potential future feature. In a GitHub issue tracking Prisma support expansion, MongoDB was specifically mentioned: "Support for other databases next to Postgresql (they even support nosql databases like mongo and cockroach)" GitHub Issue #641.
3. When a user asked about using MongoDB with the open-saas template, a Wasp team member confirmed: "Unfortunately we don't support mongodb for now! Prisma has support for it, so it is not super hard to support it and we might in the future, but we don't yet." Discord support thread.
There's no specific timeline mentioned for when MongoDB support might be added, though it appears to be on their radar for future development. If your data must remain in MongoDB, you might need to explore other options or wait until Wasp adds MongoDB support.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @csd, 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?
Hey @csd, we absolutely want to support everything prisma supports (and they do support mongo). We have an open issue for this and I mentioned this thread to help prioritize it: https://github.com/wasp-lang/wasp/issues/1261
That said, this isn't a big priority for us and is unlikely to come out before version 1.0 (mostly because of the constraints explained in the issue).
thanks for the update @sodic - I'll keep an eye on that github issue for any changes.