Setup Prisma with Apollo Server V4 and MongoDB Atlas (Prisma Setup)

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ส.ค. 2024
  • 🎓 Join my learning platform for module based courses, learning exercises, and more: coderprep.com/
    In this video I show you how to setup Prisma with MongoDB Atlas and Apollo Server. We cover Prisma models, building a GraphQL API, TypeScript, and everything else you need to know when building out an API with Prisma and Apollo Server.
    Final code: github.com/coopercodes/Prisma...
    0:00 Intro / API Showcase
    0:40 Prisma / MongoDB setup
    5:14 Create MongoDB Atlas instance
    7:10 Setup Prisma Client
    8:50 Create Apollo Server / Prisma logic
    15:15 Final project, thanks for watching!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 17

  • @waterflow8454
    @waterflow8454 ปีที่แล้ว +3

    You are using apollo 4, and there is relatively little information about it, which is of great help to us. Thank you

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว +2

      Full stack video using apollo server 4 soon :). Glad you appreciate seeing the apollo content! Thanks for watching

    • @waterflow8454
      @waterflow8454 ปีที่แล้ว

      @@CooperCodes thank you very much

    • @oviemenaokpowodu926
      @oviemenaokpowodu926 ปีที่แล้ว

      ​@@CooperCodes mongoose or Prisma,which is better to use?

  • @isaac-svg
    @isaac-svg 4 หลายเดือนก่อน

    You have saved me hours. Thank you

  • @vTiagoPT
    @vTiagoPT 9 หลายเดือนก่อน

    Great content here, glad I found your channel. Straight to the point in record time

  • @MisterNorthernCanuck
    @MisterNorthernCanuck ปีที่แล้ว +1

    No bullshit, to the point, useful. Thanks!

  • @paulthomas1052
    @paulthomas1052 ปีที่แล้ว

    Thanks for another interesting tutorial.

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว +1

      You're welcome! A bit more niche but I found a lack of content regarding this setup so decided to make a video to help the few :)

  • @tonykharioki6913
    @tonykharioki6913 ปีที่แล้ว

    at 8:49 you could imply do `import { prisma } from "./db" `

  • @zooroish
    @zooroish 25 วันที่ผ่านมา

    How would you write unit tests for this?

  • @c4346
    @c4346 ปีที่แล้ว +1

    Thank you, this was very useful ! Can you do a tutorial to deploy it ? I tried to deploy this to AWS lambda but keep get prisma errors :(

  • @CuriousAnonDev
    @CuriousAnonDev ปีที่แล้ว

    I was trying to make social media app project using react and grapql api, but I am not sure how to upload photos from react and receive it in backend using graphql
    Can you help? I looked on youtube, googled but all content was outdated (apollo 2)

  • @oviemenaokpowodu926
    @oviemenaokpowodu926 ปีที่แล้ว

    Prisma or mongoose,which is better to use here? @cooper codes

    • @cjfong425
      @cjfong425 10 หลายเดือนก่อน +1

      Also wondering why you're choosing Prisma to connect to Mongo. Seems like Prisma makes more sense for RDBMS.

    • @oviemenaokpowodu926
      @oviemenaokpowodu926 10 หลายเดือนก่อน

      @@cjfong425 yeah,you're right.