Using MongoDB with Prisma
Vložit
- čas přidán 13. 07. 2021
- MongoDB is currently supported as a preview feature in Prisma. In this video, Ryan Chenkie walks through how to use MongoDB in a Prisma project, including instructions on how to connect to a remote MongoDB database, create documents, relate collections together, and more.
Learn more about Prisma:
◭ Website: www.prisma.io
◭ Docs: www.prisma.io/docs
◭ Quickstart: www.prisma.io/docs/getting-st... - Zábava
Thanks bro, your tutorial helped to resolve my issue.
pretty straightforward thank you
Is there a date, when prisma's mongodb feature might be production ready
How to map createdAt & updatedAt fields?
Is embedding supported yet?
It's never the complicated part they do when showing us how things work.
Thaks you for you services SIR!......
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
Again thank u
Thank you. This is I need
Thanks a lot, you're really helpfull!
how do we use prisma studio with mongodb?
You didn't show how to setup the credentials to connect to database...
Sir, can i use prisma in shared hosting?
good video, excellent post
Many many thanks
It would have been great if you could have shown us the connection string to see how we access a specific database in atlas, its what im battling with
Same here, connecting to atlas throws all kinds of different errors.
Agreed. A mongodb Atlas connection string would be helpful for this video. I tried mongodb+srv://USERNAME:PASSWORD@..... and get errors when I run the command npx prisma db pull --force. Any suggestions?
@@herbramos3985 same
I had issues using the connection string from mongo compass and decided to use mongo atlas instead. After getting the connection string from the new cluster and grabbing user and password, I added that to the .env file. Then I ran npx ts-node and it finally worked
yap, that's what im trying to look for when i watch this video, but seems that he just skips that kind of part
amazing
How do I set the ID as uuid?
i got some error when i try to input some data in mongodb use prisma studio
Raw query failed. Code: `unknown`. Message: `Kind: Server selection timeout: No available servers. Topology: { Type: ReplicaSetNoPrimary, Set Name: disable }, labels: {}`
how can i solve this ?
i have problems while connecting to my database (env file)
Please we need full MongoDB support asap, Mongoose with Typescript just doesn't work.
Hello there! Thank you for raising this urgency with us. We're definitely hard at work to launch the GA support for MongoDB by the end of the year.
Feel free to jump on our #mongodb Slack channel for any questions about the Preview version, in the meantime! slack.prisma.io/
@@PrismaData thanks for your work! I really appreciate prisma
I wish it had support for nested queries though...
😍
Was here to checkout the connection steps :(
Some of the code are deprecated, like dbgenerate()
I was wondering about this, is this video still relevant?
The downside: you cannot create field level encryption wirh prisma 😅
Need more language clients not only JS.
For people watching RN, there is something you should note:
@dbgenerated should be replaced with auto.
Is there any option how to create TTL in Prisma + MongoDB? For example you want to remove a document after 30mins?