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

    Irakli Safareli

    09/27/2022, 7:51 PM
    Can Prisma maintainers give directions on how to implement this: https://github.com/prisma/prisma/issues/10425? I’m happy to contribute
    ✅ 1
    n
    • 2
    • 1
  • a

    Adam Braus

    09/28/2022, 12:11 AM
    I started a new podcast! solutionsfromthemultiverse.com New unheard of solutions to the world’s biggest (and smallest) problems—with jokes.
    👀 3
    prisma cool 1
    😁 1
  • h

    Husnain Saeed

    09/28/2022, 6:44 PM
    okay so i have this serverless lambda application where im including prisma dependencies as a layer My question is, if i run a migration on the db, thus need to create a new client in the layer, do i need to redeploy the layer to run that script?
    ✅ 1
    n
    • 2
    • 2
  • s

    Sebastian Gug

    09/29/2022, 12:24 PM
    I see that the official prisma documentation website uses PrismJS for syntax highlighting, any ideas on how to get it supported? Looking at
    <https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript>
    prisma is not among the available languages, and if it's not possible, any ideas on what's the next best thing to use?
    ✅ 1
    s
    • 2
    • 5
  • m

    manuel

    09/30/2022, 2:52 PM
    Hi! Is prisma planning to add official rust support anytime soon? :)
    ✅ 1
    n
    • 2
    • 1
  • m

    Matheus Assis

    09/30/2022, 5:18 PM
    Isn’t the “new fetch pattern” turning things into the same as they were before graphql? When using graphql, the idea is to ask what you need and only what you need, for a whole page, using a single request. Preventing request “race conditions”(lack of a better term), separate requests asking for the same data like user name. With things like Layout RFC and React Server Components, and even hooks, theoretically each component now should be responsible for fetching its own data. Don’t get me wrong, DX wise I prefer this way more over than the prop drilling pattern of having a query run in a
    /page
    , then passing
    data
    or
    data.whatever
    down to each component But if each component is now doing its own request, we’re coming back to the REST pattern anyway. Each component does its own request, and separate requests asking for the same data like user name. It’s just being done in a different way... But it’s the same thing. The only big difference I see is the apollo cache if using apollo
    💬 1
  • j

    Jwad

    10/01/2022, 10:09 PM
    Hello
    👋 2
    r
    • 2
    • 1
  • j

    Jwad

    10/01/2022, 10:09 PM
    I come as a sequelize refugee
    a
    • 2
    • 1
  • r

    Richard

    10/03/2022, 12:39 PM
    If you’re using prisma in a pnpm workspace inside a
    packages/db
    package, consider adding a
    prisma
    script to the workspace root, so that you can run all prisma CLI commands from the root naturally:
    Copy code
    # from your workspace-root:
    pnpm prisma generate
    pnpm prisma migrate dev
    pnpm prisma db push
    looks like this:
    Copy code
    {
      scripts: {
        "prisma": "pnpm --filter db exec prisma"
      }
    }
    Wrote it about it here.
    ✅ 1
    j
    • 2
    • 2
  • v

    Vivek Poddar

    10/03/2022, 6:16 PM
    Hi all, I need some help in DB design I am not sure which is the right channel for that
    j
    • 2
    • 4
  • s

    Syun Matsunaga

    10/04/2022, 4:19 AM
    Hello world!
    👋 5
    j
    n
    • 3
    • 2
  • r

    Rexford Koomson

    10/04/2022, 8:59 AM
    Hello, please is anyone working on graphql for microservice using prisma for the database?
    j
    s
    • 3
    • 26
  • s

    Sebastian Gug

    10/04/2022, 11:06 AM
    is there a way to streamline picking up prisma client model updates in vscode? I Find myself having to reload windows just to get intellisense to pick up changes
    n
    s
    • 3
    • 4
  • s

    Sebastian Gug

    10/04/2022, 11:07 AM
    I appreciate this isn't really a prisma question though but thought someone here might've gotten too annoyed with it too
    j
    • 2
    • 1
  • e

    Evangelos Charalampidis

    10/06/2022, 11:56 AM
    Hello everybody, my friends have built this website for walking routes around the world and they’re currently running their first competition 🎉 The prize is £100 Amazon voucher 💰 Check it out here: https://walkly.com/blog/competition-october-2022
    👏 3
  • t

    Timothy Choi

    10/16/2022, 8:30 PM
    Does anybody have any recommendations on npm libraries that help with parsnig a query string to prisma filter? Like https://github.com/fox1t/qs-to-mongo but understands Prisma syntax
    j
    • 2
    • 3
  • m

    MeetSnowmaker

    10/17/2022, 2:39 PM
    hi there. Has anyone ever managed to make fulltextsearch preview feature working with pg? No matter how I create the index, the client seemingly sends in the request with
    Copy code
    WHERE to_tsvector(concat_ws(' ', "test"."Test"."barcode")) @@ to_tsquery($1)
    instead of the index created for this pupose. is this intentional and the pg should solve the query planning? or i am missing something in the docs?
    d
    • 2
    • 1
  • j

    Joey

    10/17/2022, 3:27 PM
    Hey everyone, not sure if this is okay to put here, feel free to remove if not. I’ve gotten a lot from this community, so I’d really value any feedback anyone has. I’ve been working on a project in my spare time (with Prisma 😉 ), it’s a dead simple API that lets you shoot out email, slack, and text message alerts to your team when important things happen in your software. Would really, really appreciate any feedback on why you think this would or wouldn’t be useful, before I invest any more time into it than I already have 😅 https://devalerts.io
    j
    • 2
    • 3
  • d

    David Ilizarov

    10/18/2022, 6:54 PM
    The day I finish up writing all code for first launch, Prisma 4.5.0 comes out with the one thing I've been wanting... extended unique where clauses. Welp, time to refactor 😂
    🫂 3
    😅 1
    😂 1
    r
    j
    • 3
    • 3
  • t

    Takeo Kusama

    10/19/2022, 9:32 AM
    Hello, I fell in a pitfall about
    @db.Date
    type if server timezone isn’t UTC. Is there anyone can tell whether to equip patched code to prisma code is good or not I suggest in this thread (https://github.com/prisma/prisma/issues/7490#issuecomment-1283463638), I can currently avoid trouble by that, but it need that date object parsed every time, so it’s a bit bothering me, so if it could be done.
    v
    • 2
    • 1
  • m

    Mischa

    10/19/2022, 8:09 PM
    may be of interest to people: https://overcast.fm/+HZUdM_IVQ
    👍 3
  • r

    Reo Yamashita

    10/21/2022, 7:07 AM
    This video is very helpful for me ⬇️

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

    👍 2
    👀 1
  • s

    Slackbot

    10/21/2022, 9:44 PM
    This message was deleted.
  • a

    Aaron Rackley

    10/22/2022, 7:14 PM
    👋 Hello, team! Was great to meet you at ReactAdvanced conference yesterday. Thank you for the t-shirt, can not wait to wear it on my next dev stream
    ❤️ 4
    👋 2
    v
    • 2
    • 1
  • k

    Kenny Tran

    10/23/2022, 6:41 AM
    Hey everyone. I have been working on a dynamic calendar and would love some feedback on the code itself. Looking for ways to decrease complexity while maintaining its functionality - https://codesandbox.io/embed/practical-waterfall-v7z2lc?fontsize=14&amp;hidenavigation=1&amp;theme=dark
  • d

    Dazzpowder

    10/24/2022, 9:00 AM
    Anyone have documentation a link to what the options provide when creating a Helm-Chart for download under defenders?
  • s

    Stephen Osei-Bonsu

    10/24/2022, 1:28 PM
    What is the latest with nexus-prisma-plugin? I'm trying to build a graphql API with nexus and nexus-prisma-plugin but seem the project has been discontinued. Anywork around to use it in 2022 projects, is it advisable to use it?
    p
    • 2
    • 3
  • e

    Evangelos Charalampidis

    10/24/2022, 2:40 PM
    Isomorphic Strings LeetCode 205 JavaScript O(N) solution. GitHub repo below. LeetCode 3/75

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

    👀 1
  • t

    Ted Joe

    10/26/2022, 2:37 PM
    How can I define a many to many relationship with muiltiple of relations in the same tables? for ex
    Copy code
    User {
    id: String
    employeeProfile: Profile[]
    clientProfile Profile[] @relation("client")
    }
    
    Profile {
    id: String
    client User?   @relation("clientProfile", fields: [clientProfileId], references: [id])
      clientProfileId String?
    
      employees User[]
    }
    The place where I'm having trouble is the employeeProfile. How can I do a many to man using the same tables?
    j
    • 2
    • 1
  • j

    John Bradens

    10/27/2022, 3:07 AM
    Can anyone please help me understand the difference between these two functions? Why does one take context and one takes request? (Sorry if this isn't a prisma specific question - if I need to ask for help in a more appropriate place, please let me know & my apologies in advance):
    function getUserId(context) {
    const Authorization = context.request.get("Authorization");
    console.log("hello");
    console.log(context.request);
    if (Authorization) {
    const token = Authorization.replace("Bearer ", "");
    const { userId } = jwt.verify(token, process.env.APP_SECRET);
    return userId;
    }
    throw new AuthError();
    }
    class AuthError extends Error {
    constructor() {
    super("Not authorized");
    }
    }
    module.exports = {
    getUserId,
    AuthError,
    APP_SECRET,
    };
    // function getUserId(req, authToken) {
    //   if (req) {
    //     const authHeader = req.headers.authorization;
    //     if (authHeader) {
    //       const token = authHeader.replace("Bearer ", "");
    //       if (!token) {
    //         throw new Error("No token found");
    //       }
    //       const { userId } = getTokenPayload(token);
    //       return userId;
    //     }
    //   } else if (authToken) {
    //     const { userId } = getTokenPayload(authToken);
    //     return userId;
    //   }
    //   throw new Error("Not authenticated");
    // }
    j
    • 2
    • 42