You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to setup a MongoDB-based project using Blitz, and encountered a couple of issues. It seems Mongo is not integrated into the framework though the docs (https://blitzjs.com/docs/database-overview) mention that Mongo is one of available options.
So first of all when I change schema to use MongoDB (and generate types) TS reports a type error in blitz-server.js:
Sessions seem to work fine so it's likely a typing error related to Prisma having different interfaces for Mongo.
Also, I noticed that code scaffolding (blitz generate) generates SQL-targeted code (including Prisma models).
It would be nice to have information about Mongo support in the docs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Team,
I tried to setup a MongoDB-based project using Blitz, and encountered a couple of issues. It seems Mongo is not integrated into the framework though the docs (https://blitzjs.com/docs/database-overview) mention that Mongo is one of available options.
So first of all when I change schema to use MongoDB (and generate types) TS reports a type error in
blitz-server.js
:Sessions seem to work fine so it's likely a typing error related to Prisma having different interfaces for Mongo.
Also, I noticed that code scaffolding (
blitz generate
) generates SQL-targeted code (including Prisma models).It would be nice to have information about Mongo support in the docs.
Beta Was this translation helpful? Give feedback.
All reactions