Is it possible to make the primary database in open-SaaS as mongodb ?

"I'm relatively new to this. I appreciate your understanding and guidance. 😊
4 Replies
kapa.ai
kapa.aiβ€’7mo ago
Hi @NEC kalyana Sundaram. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Currently, Wasp and its Open-SaaS template do not support MongoDB as the primary database. The primary database used is PostgreSQL. This is due to the fact that Prisma, which Wasp uses for database operations, does not currently support MongoDB for some of its commands. However, Prisma does have support for MongoDB, so it's possible that Wasp might support it in the future. If you want to use a different database with Wasp, you can provide your own PostgreSQL database connection URL and ensure that the database is accessible from the server. You just need to provide the server with the correct DATABASE_URL environment variable. This can be done in the .env.server file. Here are the relevant sources for your reference: - Discord support thread: Mongodb with open-saas (https://discord.com/channels/686873244791210014/1196714311633092668) - Github Issue (closed): During development, produce a nice error message for user if database is not running but it should be (https://github.com/wasp-lang/wasp/issues/1051) - Docs > Advanced > Deployment > Deploying Manually > Deploying a Wasp App > 4. Deploying the Database (https://wasp-lang.dev/docs/advanced/deployment/manually#4-deploying-the-database) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEC kalyana Sundaram, 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?
NEC kalyana Sundaram
NEC kalyana Sundaramβ€’7mo ago
thanks @kapa.ai
kapa.ai
kapa.aiβ€’7mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- You're welcome! If you have any more questions about Wasp, feel free to ask. Happy coding! 😊 ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEC kalyana Sundaram, 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
martinsosβ€’7mo ago
Good bot! Yup, currently no, but it will be possible at some point in the future (not so soon though).
Want results from more Discord servers?
Add your server