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

    Polly

    05/10/2022, 11:12 PM
    This polly is closed. @Omar has a polly for you!
  • o

    Omar

    05/10/2022, 11:13 PM
    I would love it if people who used any validation library before, participate in the poll above. Thank you!
  • m

    mkspcd

    05/11/2022, 4:58 AM
    Hello, Anyone knows which tool was used to create this kind of UML diagram in the Prisma documentation : 🙂
    👍 1
    👀 1
    l
    c
    • 3
    • 4
  • m

    Moin Akhter

    05/11/2022, 10:51 PM
    Hey devs it may be a silly question but i need help. How as a developer we can find best npm package for your scnerio any suggestion please if anyone have? Thanks in advance.
    a
    • 2
    • 1
  • y

    Yukito

    05/12/2022, 1:39 AM
    Hello, I am newbie of Prisma. I would like to ask some tech questions. Is there any channel where I can ask? Thanks.
    n
    • 2
    • 1
  • o

    Omar

    05/14/2022, 12:32 AM
    Hey everyone! I'm currently looking for ideas of Prisma Generators to build next So, if you need something specific, and there's no generator for it in the community, I will be more than happy to build it for you, for FREE!
  • o

    Omar

    05/14/2022, 11:39 PM
    For those who want to have a fake REST API using their Prisma schema, I made you something cool. It creates a JSON file that can be turned into a server using
    json-server
    . I'm sure you're going to find this really useful. Check it out here: https://github.com/omar-dulaimi/prisma-json-server-generator
    👍 1
  • i

    Ishan Manandhar

    05/16/2022, 9:14 AM
    I recently wrote an article on Remix authentication with MongoDB and Prisma. Please give it a read here. Thank you 🙂
    💯 3
  • o

    Omar

    05/21/2022, 1:18 AM
    Hello all Announcing tRPC Shield 🎉fast parrot It's based on GraphQL Shield if you have used it before, it allows you to abstract away your permissions into a single file! take this example:
    Copy code
    const permissions = shield({
      query: {
        fruits: and(isAuthenticated, or(isAdmin, isEditor)),
        customers: and(isAuthenticated, isAdmin),
      },
      mutation: {
        addFruitToBasket: isAuthenticated,
      },
    })
    You can define rules as you like, then mix and match then to get exactly what you need with logical operators. To make things even smoother for tRPC users who also use Prisma, I built a new generator that takes care of emitting the right shield for your Prisma schema:
    Copy code
    import { shield, allow } from 'trpc-shield';
    
    export const permissions = shield({
      query: {
        aggregatePost: allow,
        aggregateUser: allow,
        findFirstPost: allow,
        findFirstUser: allow,
        findManyPost: allow,
        findManyUser: allow,
        findUniquePost: allow,
        findUniqueUser: allow,
        groupByPost: allow,
        groupByUser: allow,
      },
      mutation: {
        createOnePost: allow,
        createOneUser: allow,
        deleteManyPost: allow,
        deleteManyUser: allow,
        deleteOnePost: allow,
        deleteOneUser: allow,
        updateManyPost: allow,
        updateManyUser: allow,
        updateOnePost: allow,
        updateOneUser: allow,
        upsertOnePost: allow,
        upsertOneUser: allow,
      },
    });
    You can fined them here: tRPC Shield: https://github.com/omar-dulaimi/trpc-shield Prisma tRPC Shield Generator: https://github.com/omar-dulaimi/prisma-trpc-shield-generator 😁prisma rainbow
    💯 2
    👍 3
  • j

    Jeremy Cohen Hoffing

    05/24/2022, 7:09 PM
    Does anyone have recommendations for an ipv6 proxy service? (basically need an array of ipv6 addresses for scraping, rotating ones would be a plus)
    n
    • 2
    • 1
  • o

    Omar

    05/25/2022, 4:51 AM
    Hey everyone Just wanted to let you know that https://github.com/omar-dulaimi/prisma-trpc-generator now also auto generates a tRPC Shield for you! So you don't have to install a bunch of libraries, you just need one after this change. Simply pass the
    withShield
    option to the generator block in your Prisma schema:
    Copy code
    generator trpc {
      provider       = "prisma-trpc-generator"
      withShield     = true
    }
    This is now ready to use starting with
    v0.1.9
    You also don't have to add any
    //@ts-ignore
    anymore 🙂
    🙌 1
  • k

    Kushagra Kesav

    05/26/2022, 3:22 AM
    👋 Hello, team! I have registered for MongoDB Prisma Launch! Looking for Swag!
    👋 3
  • o

    Omar

    05/27/2022, 6:40 AM
    https://dev.to/omardulaimi/how-to-create-a-json-server-from-your-prisma-schema-6el
    👍 2
  • t

    Taras Protchenko

    06/03/2022, 10:22 AM
    What object-storage (like s3 or minio) you use to store user upload images?
    n
    d
    +4
    • 7
    • 6
  • s

    Sacha Greif

    06/17/2022, 12:05 AM
    hey all! I hope it's ok to let the Prisma community know, but the first ever State of GraphQL survey is now open. If you happen to use GraphQL, it'd be great to have everybody's input to help get a clearer pictures of the trends in the ecosystem! https://www.stateofgraphql.com/en-us/?source=prisma_slack
    👍 2
    🦜 1
  • v

    Vivek Poddar

    06/23/2022, 3:01 PM
    Hi all, I have a create method for an object with fields like
    createdAt
    and
    updatedAt
    which is not present on a new object, I don’t want to make these fields optional at the schema level. Currently Typescript is screaming at me when storing a new object, how to make it happy? 🙂
    m
    • 2
    • 3
  • y

    Yashua Pervez

    06/29/2022, 6:06 AM
    hi
  • g

    Gaurav Sharan

    06/29/2022, 9:24 AM
    Want to be a part of a great community? Then do join here https://discord.gg/SXYE4Z6REg
  • t

    Taras Protchenko

    06/29/2022, 2:45 PM
    What framework you recommend for real time collaboration app? 1. RedwoodJS 2. Next.js 3. Remix
    1️⃣ 3
    2️⃣ 14
    3️⃣ 2
  • t

    Taras Protchenko

    06/29/2022, 2:49 PM
    What framework you recommend for big social app with many frontends(web, mobile, desktop...)? 1. RedwoodJS 2. Next.js 3. Remix
    1️⃣ 1
    3️⃣ 2
    2️⃣ 11
  • m

    Michael Jay

    06/30/2022, 7:44 PM
    I just found out about Prisma Studio. 🔥 🔥 🔥 Viva La Prisma!
    prisma rainbow 7
  • g

    Gaurav Sharan

    07/02/2022, 4:04 PM
    Wanna join a coding community? Here it is... https://discord.gg/SXYE4Z6REg
    ✅ 1
  • g

    GG Nam

    07/08/2022, 4:47 AM
    Hey, good day! I just have a random question. Is Slack free for opensource project like Prisma? Or they offer some discount to FOSS project? If not, how much do I pay for one person? 😄
    v
    • 2
    • 2
  • m

    Mateusz Stepaniuk

    07/08/2022, 1:58 PM
    Hi everyone, quick question why in 2022 we still using Slack as community server?
    p
    • 2
    • 2
  • m

    Mateusz Stepaniuk

    07/08/2022, 1:58 PM
    Isn't it better to move to Discord?
    t
    p
    +2
    • 5
    • 11
  • a

    Andrew Wang

    07/11/2022, 3:50 AM
    hey y’all, my company continues to banter with me about how good prisma is. I’m a Django person, and I really enjoy the packages that have the API routes and db tables just set up for me already (like dj-stripe). We use NestJS, and I wonder: why does NestJS and Prisma not have the same kind of packages as Django’s ecosystem?
    a
    • 2
    • 6
  • o

    Omar

    07/13/2022, 7:22 PM
    Hey all, I would like to let you know that I have completed updating all my Prisma generators to the latest version 4.0 Do let me know me if you face any issues: https://github.com/omar-dulaimi
    prisma rainbow 1
    🚀 1
    c
    • 2
    • 3
  • m

    MAQ

    07/14/2022, 10:00 AM
    Hi🙋‍♂️
    👋 1
  • j

    Jannik Köster

    07/14/2022, 10:22 AM
    is there someone who uses prisma in nextjs?
    ✅ 1
    n
    • 2
    • 1
  • m

    Marcos Iglesias

    07/14/2022, 10:31 AM
    hi
1...4950515253Latest