Using MongoDB with Prisma

preview_player
Показать описание
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:
Рекомендации по теме
Комментарии
Автор

Is there a date, when prisma's mongodb feature might be production ready

konstantinh.
Автор

It's never the complicated part they do when showing us how things work.

borisrosedeveloppeurweb
Автор

You didn't show how to setup the credentials to connect to database...

joao-pedro-alves
Автор

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

greggord-hume
Автор

Is there any option how to create TTL in Prisma + MongoDB? For example you want to remove a document after 30mins?

Wardret
Автор

I tried doing this (pseudo code) essentially referring to Account collection in two different properties of Transaction:

model Account {
id ObjectId
}

model Transaction {
id ObjectId
from Account
to Account
amount Float
}



and it simply didn't work, I tried everything and it's absurd that there was no solution to this simple thing!

deleted-ug
Автор

How to map createdAt & updatedAt fields?
Is embedding supported yet?

vsquarevision
Автор

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 ?

davischaliq
Автор

Thanks bro, your tutorial helped to resolve my issue.

mohitgoyal
Автор

Please we need full MongoDB support asap, Mongoose with Typescript just doesn't work.

Creamworks
Автор

i have problems while connecting to my database (env file)

Sam-krix
Автор

currently npx prisma generate not work

blcouz
Автор

how do we use prisma studio with mongodb?

ezequielbecerra
Автор

Thanks a lot, you're really helpfull!

lenoil
Автор

Sir, can i use prisma in shared hosting?

mahbubhasan
Автор

Some of the code are deprecated, like dbgenerate()

CodeWithRivandra
Автор

Was here to checkout the connection steps :(

akshar
Автор

The downside: you cannot create field level encryption wirh prisma 😅

rebarius
Автор

For people watching RN, there is something you should note:

@dbgenerated should be replaced with auto.

haneenmahdin
Автор

Need more language clients not only JS.

shinebayar