https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# orm-help
  • j

    Jacob Lloyd

    05/16/2022, 4:27 AM
    I’m unable to create a Prisma project. It errors each time. We updated our Database to a new MongoDB instance. It times out while loading the new project on the final step then breaks whenever you open the project.
  • j

    Jacob Lloyd

    05/16/2022, 4:28 AM
  • j

    Jacob Lloyd

    05/16/2022, 4:28 AM
    Please advise ASAP. Website is down until this is fixed.
  • s

    Secre

    05/16/2022, 6:32 AM
    Hello guys! I'm curious why I can't make requests to specified in
    .env
    db with prisma methods. All works fine until today, and now prisma giving error "Authentication failed against database server at
    localhost
    , the provided database credentials for
    postgres
    are not valid" But yesterday all works fine. Why this can happen? I check db with psql tool and seems like db is up and running, because I can make requests to it, but nor from prisma.
    j
    • 2
    • 1
  • u

    user

    05/16/2022, 8:01 AM
    👉 Amplication - an interview with Yuval Hazaz --

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

    -- Checkout our interview from WNIP with Amplication founder and CEO, Yuval Hazaz. Find out how Amplication is using Prisma to help professional developers avoid repetitive coding tasks.
    🙌 2
    💯 2
    👀 1
  • a

    ajay satish

    05/16/2022, 8:53 AM
    When will prisma bring out full support for MongoDB?
    m
    n
    • 3
    • 3
  • m

    Martin Pinnau

    05/16/2022, 1:31 PM
    Hi, is there an alternative to graphql-yoga using nexus-plugin-prisma ? I can't get v2 of graphql-yoga running due to incompatibilities between nexus-plugin-prisma and nexus.
    n
    • 2
    • 1
  • n

    Nathan Lands

    05/16/2022, 4:11 PM
    Decided to just roll my own DB. From an outside perspective, Prisma was supposed to make things easier but so far it's made things harder for me. Dealing with Prisma + Nexus is super confusing. And I was getting bugs from the auto-generated schemas that were hard to debug.
  • j

    Jason Kleinberg

    05/16/2022, 4:55 PM
    Is anyone else doing integration testing using Prisma (or any sort of test where you are using the live prisma client)? I’m finding that it often gets overwhelmed with connections. Also when I call
    prisma.$disconnect()
    it’s taking around 30 seconds to a minute.
    r
    • 2
    • 14
  • j

    Jacob Lloyd

    05/16/2022, 5:34 PM
    Are ANY Prisma team members on who can help?? We need our website operational.
    r
    • 2
    • 12
  • j

    Jacob Lloyd

    05/16/2022, 5:34 PM
    Please, we can't be down for days on end like this
  • a

    Alex Vilchis

    05/16/2022, 5:37 PM
    Hi 👋 Do any of you guys use Playwright along with Prisma for db setup/cleanup?
    👀 2
    r
    o
    r
    • 4
    • 5
  • p

    Patty Harris

    05/16/2022, 6:32 PM
    I just (nearly) finished the tutorial from here: https://vercel.com/guides/nextjs-prisma-postgres. The final deployment fails when I try to login (e.g. authenticate with github) with: Server error There is a problem with the server configuration. Check the server logs for more information. The error is as a result of POST https://patty-harris-blogr-nextjs-prisma.vercel.app/api/auth/signin/github. I've checked my server and OAuth setup and I don't see where the mistake is located - the Authorization callback URL, client ID and secret look correct. Any suggestions? Also, where are the server logs located? TIA Never mind - I redeployed and now it's working....odd.
    👍 2
    🙌 2
  • b

    Bruno Orosco

    05/16/2022, 6:52 PM
    hi, guys, I'm having trouble creating the yyyy-mm-dd date format in PG, can anyone help me? model Subscription { id String @id @default(uuid()) @db.VarChar(250) idPlan String @db.VarChar(250) plan Plan @relation(_fields_: [idPlan], _references_: [id]) //relacionamento idClient String priceAll Decimal @db.Decimal(10, 2) status Boolean paymentMethod String startDate DateTime @db.Date finishDate DateTime @db.Date } Argument finishDate: Got invalid value '2023-02-20' on prisma.createOneSubscription. Provided String, expected DateTime or Null. Argument startDate: Got invalid value '2022-02-20' on prisma.createOneSubscription. Provided String, expected DateTime or Null.
    r
    • 2
    • 8
  • a

    Annie Tsai

    05/16/2022, 7:23 PM
    hi, I’m trying to use the
    upsert
    method with a multi-column unique constraint, e.g.:
    Copy code
    // schema.prisma
    model X {
      id        ...
      ...
      email     String
      subdomain String
    
      @@unique([email, subdomain])
    }
    
    // api
    const upsertX = async params => {
      const { email, subdomain } = params;
      const upsertedX = await prisma.x.upsert({
        where: { email_subdomain: { email, subdomain } },
        update: { ... },
        create: { email, subdomain, ... },
      });
    };
    for some reason, the
    upsert
    call always runs for a long time and times out. I tried using
    prisma.x.findMany({ where: { email, subdomain } })
    instead and that seems to work fine… but shouldn’t the unique constraint make querying by
    email_subdomain
    faster (or at the very least, it shouldn’t time out). am I missing something?
    r
    n
    • 3
    • 6
  • j

    Jacob Lloyd

    05/16/2022, 10:03 PM
    Does Prisma ONLY work with serverless MONGODB collections?
    r
    • 2
    • 1
  • j

    Jacob Lloyd

    05/16/2022, 10:37 PM
    Any idea why this is happening
  • j

    Jacob Lloyd

    05/16/2022, 10:37 PM
    Image from iOS.MOV
  • j

    Jacob Lloyd

    05/16/2022, 10:37 PM
    Why is this happening
  • j

    Jacob Lloyd

    05/16/2022, 10:53 PM
    I will pay for someone to tell me exactly how to fix at this point. DM
    j
    i
    +2
    • 5
    • 15
  • t

    ThePoutineGuy

    05/17/2022, 1:37 AM
    👋 Hello, everyone! Anyone using/tried to use Prisma with Azure Cosmos DB API for MongoDB? I've used in the past with Mongoose and wanna know if one face a particular problem within this stack. Thank you all! Happy coding.
    n
    • 2
    • 1
  • m

    Mischa

    05/17/2022, 2:53 AM
    any way to define a
    @@unique(...)
    with a
    COALESCE(field, 'value-if-null')
    field? (like on this - https://stackoverflow.com/a/8289327/4167590)
    n
    • 2
    • 1
  • d

    Demian N

    05/17/2022, 4:57 AM
    I reach to a point on where I need some external help. I'm trying to use prisma to feed two different apps that are hosted in the same monorepo. I'm using turborepo as my mono and one app is a web app, and the other one is a terminal (CLI). Both are supposed to the same prisma schema and generated client to interact with the DB (postgres) so I thouhg it would be nice to abstract it an place prisma into it's own shared library in the mono. All in all, this was thought as very simple but it is giving me a lot of problems. Do you know if there is an example fo prisma working kind of like this way under a mono to where I can look for?
    r
    • 2
    • 4
  • i

    Ibrahim

    05/17/2022, 5:28 AM
    Hi Prisma, I've been involved in a project recently that is using Hasura and it blew my mind on how all the graphql queries, mutations, subscriptions and filters are automatically created just by inspecting the database. Prisma has been my favorite ORM for a while and I'm wondering if there's any library or utility in Prisma environment or something close we can use to replicate the features on Hasura Thanks
    n
    • 2
    • 3
  • m

    Manuel Galván

    05/17/2022, 5:41 AM
    Does someone has a tutorial on how to create graphql inputs for prisma autogenerated DTO's in nestjs using this library https://www.npmjs.com/package/prisma-nestjs-graphql??
    n
    • 2
    • 1
  • m

    Manuel Galván

    05/17/2022, 5:41 AM
    I cant really understand how to properly use connect on create or create nested objects
  • v

    Vladi Stevanovic

    05/17/2022, 8:56 AM
    👋 Hello Prisma Community! The Prisma team is currently attending the Prisma offsite (Mon May 16th > May 20th) so our responses will be delayed. We count on our ✨ amazing community ✨ to help each other and we'll do our best to answer questions throughout the breaks in the week and next week. Thank you for your understanding! 💚
    👍🏼 1
    👍 5
    prisma rainbow 7
    ✨ 7
  • d

    Dominik Jašek

    05/17/2022, 10:10 AM
    Prisma Data Browser throws this error. Is it known to you already?
    n
    • 2
    • 4
  • m

    Matt Fysh

    05/17/2022, 11:55 AM
    Hi all I’m soon to board a long hault flight and trying to get the prisma docs running locally. When I try to run
    npm install
    i get an
    ERESOLVE
    error. Any ideas?
    v
    • 2
    • 5
  • m

    Mattia Romeo

    05/17/2022, 12:02 PM
    I’m trying to create a system of shared keys across my app. The idea is that there’s a central store of keys in the database and: 1. A server can request an available key, which is returned and marked as in use. 2. A server can relinquish its key (or the hold on the key will eventually expire), which will mark it as available. 3. If no keys are available the server can generate a new set of keys to repopulate the table (these keys require some specific formatting logic so I don’t think the can be generated inside the database) I see Prisma supports transactions, but they seem to be per request (i.e. they are atomic within a single request but if two separate servers simultaneously request a key, return a key, etc. you can get a data race). So how would one implement this using Prisma? P.S. - I’ve never worked with databases before (my background is in game, mobile and front-end development) so feel free to point out things that should be glaringly obvious 😉 P.P.S. - The reason I think transactions are not safe across multiple requests is this issue: https://github.com/prisma/prisma/issues/3242
    n
    • 2
    • 1
1...574575576...637Latest