Using MongoDB with Prisma

Sdílet
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

Komentáře • 36

  • @mohitgoyal9931
    @mohitgoyal9931 Před 2 lety

    Thanks bro, your tutorial helped to resolve my issue.

  • @kevinka99
    @kevinka99 Před 6 měsíci

    pretty straightforward thank you

  • @konstantinh.9417
    @konstantinh.9417 Před 2 lety +13

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

  • @vsquarevision2987
    @vsquarevision2987 Před 2 lety +2

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

  • @borisrosedeveloppeurweb
    @borisrosedeveloppeurweb Před rokem +19

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

    • @farazali1892
      @farazali1892 Před 11 měsíci

      Thaks you for you services SIR!......
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      Again thank u

  • @jsonwebtoken6996
    @jsonwebtoken6996 Před rokem

    Thank you. This is I need

  • @lenoil7931
    @lenoil7931 Před 2 lety

    Thanks a lot, you're really helpfull!

  • @ezequielbecerra6992
    @ezequielbecerra6992 Před 9 měsíci

    how do we use prisma studio with mongodb?

  • @joao-pedro-alves
    @joao-pedro-alves Před rokem +3

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

  • @mahbubhasan8661
    @mahbubhasan8661 Před rokem

    Sir, can i use prisma in shared hosting?

  • @rafaprieto1167
    @rafaprieto1167 Před rokem

    good video, excellent post

  • @greggord-hume3979
    @greggord-hume3979 Před rokem +12

    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

    • @Murga_Mutton
      @Murga_Mutton Před rokem +2

      Same here, connecting to atlas throws all kinds of different errors.

    • @herbramos3985
      @herbramos3985 Před rokem

      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?

    • @jeanellohaddocks7570
      @jeanellohaddocks7570 Před 10 měsíci

      @@herbramos3985 same

    • @edgarcortez9838
      @edgarcortez9838 Před 10 měsíci

      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

    • @aldotugasumb2366
      @aldotugasumb2366 Před 9 měsíci

      yap, that's what im trying to look for when i watch this video, but seems that he just skips that kind of part

  • @abouishakA
    @abouishakA Před rokem

    amazing

  • @arijitchakrabarty1552
    @arijitchakrabarty1552 Před 11 měsíci

    How do I set the ID as uuid?

  • @davischaliq5889
    @davischaliq5889 Před 5 měsíci

    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 ?

  • @Sam-kr5ix
    @Sam-kr5ix Před rokem +1

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

  • @Creamworks
    @Creamworks Před 2 lety +2

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

    • @PrismaData
      @PrismaData  Před 2 lety +5

      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/

    • @bromptonhorsing8597
      @bromptonhorsing8597 Před 2 lety

      @@PrismaData thanks for your work! I really appreciate prisma
      I wish it had support for nested queries though...

  • @SajjadHematiNourani
    @SajjadHematiNourani Před rokem

    😍

  • @akshar234
    @akshar234 Před rokem

    Was here to checkout the connection steps :(

  • @CodeWithRivandra
    @CodeWithRivandra Před rokem +1

    Some of the code are deprecated, like dbgenerate()

    • @pablom8854
      @pablom8854 Před 7 měsíci

      I was wondering about this, is this video still relevant?

  • @rebarius
    @rebarius Před 9 měsíci

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

  • @shinebayar
    @shinebayar Před 2 lety

    Need more language clients not only JS.

  • @haneenmahdin7647
    @haneenmahdin7647 Před rokem +6

    For people watching RN, there is something you should note:
    @dbgenerated should be replaced with auto.

  • @Wardret
    @Wardret Před 2 lety +2

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