P
Prisma•2mo ago
StoicWanderer

Tool to write schema by hand

Greetings everyone, I have a quite weird question, does a specific tool exist which i can use to write my prisma schema manually, because i feel too dumb to write my schema manually for my mongodb instance. Thanks
Solution:
Add Prisma ORM to an existing MongoDB project using TypeScript (15 ...
Learn how to add Prisma ORM to an existing TypeScript project by connecting it to your MongoDB database and generating a Prisma Client for database access.
Jump to solution
4 Replies
Yetzederixx
Yetzederixx•2mo ago
I'd imagine this works in mongo also, but you can pull down the schema from remote to create the initial migration files
Solution
Yetzederixx
Yetzederixx•2mo ago
Add Prisma ORM to an existing MongoDB project using TypeScript (15 ...
Learn how to add Prisma ORM to an existing TypeScript project by connecting it to your MongoDB database and generating a Prisma Client for database access.
Yetzederixx
Yetzederixx•2mo ago
Then you could use mongo's website or a tool like dbeaver to build your tables, relationships, etc and then pull down the schema for use in code
StoicWanderer
StoicWandererOP•2mo ago
Thanks, i think what I was looking for is MongoDB Compass 🙂
Want results from more Discord servers?
Add your server