https://www.prisma.io/ logo
Join Slack
Powered by
# random
  • m

    matepapp

    07/30/2020, 12:48 PM
    [off topic] is there an “official” Prisma prisma Slack theme, especially for dark mode? 👀
  • m

    Marc

    07/31/2020, 8:12 AM
    Hey! Checkout how to dockerize a NestJS app with Prisma and PostgreSQL https://notiz.dev/blog/dockerizing-nestjs-with-prisma-and-postgresql
    💯 4
    👏 5
  • m

    Mayke Freitas

    08/06/2020, 1:22 PM
    https://twitter.com/freitas_mayke/status/1291353885462888449?s=20
  • d

    davebeauchemin

    08/07/2020, 6:39 PM
    Hey everyone, I have a question I keep asking to my self. What's the best way to implement category and sub-category? Before I was using 2 type (2 table) one for Category and another one called SubCategory and I link the SubCategory with the id of the Category with the field parentId in SubCategory.
    Copy code
    model Cateogory {
      id String @id @default(cuid())
      name String @unique
    }
    
    model SubCategory {
      id String @id @default(cuid())
      name
      parentId Category @relation(fields: [categoryId], references: [id])
      categoryId String
    }
    But I don't know if it's the best approach. The second solution is to get all the category and subCategory in the same type (table) and link the subCategory with the parentId field and if the parentId is null it means it's a top-level category (not a subCategory).
    Copy code
    model Category {
      id String @id @default(cuid())
      name String
      parentId String
    }
    In terms of performance, when I'm on the frontend I need to query all top-level category, select one then show only the children (subCategory) and select another one. Which on is the recommended way to do it? Thanks everyone!
    e
    • 2
    • 2
  • l

    Lee Robinson

    08/09/2020, 11:48 PM
    For any front-end developers excited about Prisma, you might enjoy this post. I wanted to write a very high-level overview of your options for choosing a backend. Spoiler alert: Prisma on Postgres is a great choice if you have a bit of experience and want to build your own API 😄 Let me know if you see anything you’d change! Open to any feedback. https://leerob.io/blog/backend
    s
    • 2
    • 5
  • s

    Smakosh

    08/12/2020, 6:16 PM
    😍😍
    redwood 1
    prisma rainbow 5
    fast parrot 2
    z
    n
    • 3
    • 4
  • c

    Christiano

    08/15/2020, 8:52 PM
    I guess this is a super beginner question, but unsure about the downsides of instantiating a new
    PrismaClient()
    in every file (e.g. in my controllers). Did not find any hints in the documentation… Or does it not matter as long as I call
    Copy code
    .finally(async () => {
        await prisma.$disconnect()
      })
    in all my
    controller
    /
    route
    / whatever functions? Ty
    r
    c
    • 3
    • 17
  • k

    Kervin Vasquez

    08/17/2020, 6:08 PM
    How do you guys deal with Errors in Graphql? for example a failed attempt to authenticate because of the wrong password. Do you throw an exception of return a payload with a custom Error type?
    r
    • 2
    • 1
  • l

    Lars Ivar Igesund

    08/18/2020, 7:19 AM
    ccccccickcjbckijcgrfdfcbgteuerultjnjbkiedjgd
    👀 1
    ⁉️ 3
    🗿 1
    prisma cool 2
    🙀 2
    🍻 2
    👍 1
  • l

    Lars Ivar Igesund

    08/18/2020, 9:19 AM
    Uh, that is interesting ...
    😄 1
  • g

    Greg Egan

    08/19/2020, 12:01 AM
    hi all! i'm looking to hire javascript developers for some fun UI work. Fully remote. Contract to start, option to come full time. Preferred PST timezone, but open to flexible times. Figured this would be a good community to try to find someone. DM me if any interest!
  • n

    nikolasburk

    08/19/2020, 6:33 AM
    Hey everyone 👋 there's currently an interesting thread on Reddit about the choice of a good TypeScript ORM: https://www.reddit.com/r/typescript/comments/icbey2/which_orm_should_i_use/ If you like Prisma, it would be awesome if you could share your honest experiences with it there 🙂
    👍 4
    👀 5
  • h

    Hyo

    08/28/2020, 12:37 PM
    Thank you Prisma team for your gift! This made our team's day. We've also post this in twitter https://twitter.com/dooboolab/status/1299324615232090116. Thank you again for your kindness 🙏
    👍 2
    prisma rainbow 6
  • m

    Matthew Caseres

    09/01/2020, 12:51 PM
    I think I'm gonna make a video series about prisma on youtube
    ❤️ 5
  • m

    Matthew Caseres

    09/01/2020, 12:51 PM
    sort of a teach while learning thing
  • m

    Matthew Caseres

    09/01/2020, 12:52 PM
    I'll try to do the topic justice. The docs are great so I should be fine.
    💚 1
  • k

    kitze

    09/03/2020, 11:20 AM
    Yo 👋 I wrote about making fungarzione.com/sizzy with Blitz + Prisma 2 in only a few days. It's seriously insane how fast you can ship with this stack 😄 https://kitze.io/posts/launching-fungarzione-with-blitz
    🎉 2
  • m

    Matthew Caseres

    09/04/2020, 5:31 AM
    I'll post the videos I publish on Prisma, I am planning on making many videos (5 videos in the last two days, goal of one per day moving forward) so tell me if I'm spamming and I will stop posting.

    https://www.youtube.com/watch?v=BBS8pLPSmvc▾

    👍 1
  • a

    Albert Gao

    09/04/2020, 5:34 AM
    when you are writing a multi-tenant app, how do you name the
    id
    that you gonna attach everywhere,
    companyId
    or
    tenantId
    ? 😄
    r
    • 2
    • 1
  • m

    Matthew Caseres

    09/04/2020, 6:24 AM
    Also did a reddit post of first impressions. https://www.reddit.com/r/typescript/comments/imapom/first_impressions_of_prisma/
    graphcool 1
    👍 1
  • m

    Matthew Caseres

    09/05/2020, 4:12 AM

    https://youtu.be/wTmyQInsWaM▾

    👍 1
  • m

    Matthew Caseres

    09/05/2020, 4:12 AM
    The randomly selected thumbnail is funny, but I am going to pay someone on fiver to make a good thumbnail for the series.
  • m

    Matthew Caseres

    09/05/2020, 4:14 AM
    I hadn't ever used sorting in prisma, and in the middle of the tutorial I just guessed how to sort on a relations field thanks to typescript autocomplete and a consistent syntax. Also, I have never pressed ctrl+space this many times in my life. Enjoying the development experience.
  • m

    Matthew Caseres

    09/05/2020, 4:59 AM
    wait but oh my god I just published 4 videos without sound because I forgot to set up OBS
  • m

    Matthew Caseres

    09/05/2020, 5:00 AM
    back to work
  • m

    Matthew Caseres

    09/05/2020, 6:11 AM
    Ok videos are back up and are better in terms of introducing the right concepts at the right time now.
    👍 1
  • m

    Matthew Caseres

    09/05/2020, 6:12 AM

    https://www.youtube.com/watch?v=ldoX2zt1O7k▾

  • m

    Matthew Caseres

    09/05/2020, 9:42 AM
    Tested out typegraphql-prisma and think it is very nice. I don't even really know graphql that well, but the syntax is just prisma so I could do what I wanted generally. It seems there is a bug with implicit many-to-many relations though. I will probably end up moving to a database workflow where I imagine the join table gets modeled explicitly with one-many relations, and I found that one-many relations worked.
  • m

    Matthew Caseres

    09/05/2020, 11:50 AM
    probably should just learn more TypeORM though. It looks like I can just use that without the integration. The integration is just giving a bunch of code for free.
  • k

    kitze

    09/07/2020, 8:09 AM
    My video about Prisma 2 with @nikolasburk has moved to another channel 😅

    https://www.youtube.com/watch?v=B6_V1irhDfo▾

    👌 2
    j
    • 2
    • 2
1...414243...53Latest