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

    Yehonatan Levi

    04/18/2020, 1:51 PM
    @omnyx2ofcourse it can be used
  • y

    Yehonatan Levi

    04/18/2020, 1:52 PM
    all prisma does is wrap your db with some nicely typed structures so you can use it, and then it also has some helpers for using with graphql
    o
    j
    v
    • 4
    • 4
  • y

    Yehonatan Levi

    04/18/2020, 1:52 PM
    thats the nexus-prisma part
  • j

    Janos Veres

    04/19/2020, 12:51 PM
    Hi everyone, I was trying out prisma today and hit a roadblock at the introspection step. I get an error ìnvalid locale default: language: tag is not well formedˋ I am running Windows and trying to connect to cockroachdb. Any ideas?
    r
    • 2
    • 1
  • a

    Anthony Magnus

    04/19/2020, 2:41 PM
    I am working on a food order platform and before an order can be placed I want to check if there is enough stock left of each dish. So I need a transaction in which I can perform multiple queries to get the number of remaining dishes in stock of the dishes the customer wants to order. If there is enough stock left, the number that wants to be ordered has to be subtracted. If there is not enough stock of one dish, everything must be put back and the placing of the order must fail. Of course this has to be done synchronously so that no 2 orders can collide with each other at the same time. For what I could tell from the documentation, this kind of transaction is not possible at the moment, but is there anyone who has a workaround that is possible now?
    r
    • 2
    • 1
  • a

    Ahmed Ghanem

    04/19/2020, 9:39 PM
    I'm using graphql-yoga as a server to interact with prisma to create products review web app So locally I have the following endpoints available, and my client is using the first one localhost:4000 : graphql-yoga localhost:4466 : prisma //postgres database i want to upload photos for each review and profile photo for each user, what is the best practice to save photos. save photos in project directory or save picture as a binary in the database or something else like cloud media server?
  • c

    Chester ONeill

    04/20/2020, 3:36 AM
    Hey is there a trick to getting the prisma client to connect to postgres using docker-compose? I just keep getting authentication failed with the most basic setup
    Copy code
    postgres:
        restart: always
        image: postgres:latest
        ports:
          - '5432:5432'
        environment:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: password
    and my database url
    DATABASE_URL=<postgresql://postgres>:password@localhost:5432/
    r
    • 2
    • 2
  • c

    Chester ONeill

    04/20/2020, 3:36 AM
    Copy code
    Authentication failed against database server at `localhost`, the provided database credentials for `postgres` are not valid.
    
    Please make sure to provide valid database credentials for the database server at `localhost`.
        at PrismaClientFetcher.request (/home/chester/projects/raiseahand/node_modules/@prisma/client/runtime/index.js:1:52273)
        at processTicksAndRejections (internal/process/task_queues.js:89:5) {
      code: 'P1000',
      meta: { database_user: 'postgres', database_host: 'localhost' }
  • j

    joe_re

    04/20/2020, 3:43 AM
    Hi all, Prisma1 docs says
    With a high amount of parallel subscriptions, Prisma's subcriptions sometimes become unreliable.
    . But there are no any clear explanation about it, someone can explain details about it? Why it can not be reliable and why it’s difficult to fix and are there any workaround for that other than using other application? https://v1.prisma.io/docs/1.34/faq/what-to-do-with-subscription-scaling-issues-fq13/#faq
  • s

    Sareuon

    04/20/2020, 7:08 AM
    Hello, I'm Sareuon From Cambodia.
    👋 5
  • f

    friebetill

    04/20/2020, 8:26 AM
    Can someone please take a moment to help with this issue, I’m stuck and can’t get any further. https://github.com/prisma/prisma1/issues/5069
  • s

    Sareuon

    04/20/2020, 10:05 AM
    Hi @everyone How can I set @relation(link: INLINE) with manually field define?
  • p

    Pedro Avila

    04/20/2020, 2:44 PM
    hey guys, anyone knows any good boilerplate for graphql and prisma?
    r
    • 2
    • 2
  • p

    Pedro Avila

    04/20/2020, 2:45 PM
    I'm trying to consolidate a good starter pack to integrate those technologies with a react native and react applications 😄
  • a

    Andrew Rhyne

    04/20/2020, 4:27 PM
    👋
    👋 1
    🙌 2
  • d

    Donte

    04/20/2020, 6:45 PM
    Hello, I’m getting a bad request from the server and notice that my Link data model in file
    prisma.datamodel
    isn’t mirroring the data in my prisma database. Ex attached . I ran prisma deploy and generate prisma .
  • a

    Andrew Rhyne

    04/20/2020, 7:39 PM
    Any recommended patterns for deploying Prisma in monorepos?
  • a

    Andrew Rhyne

    04/20/2020, 7:39 PM
    E.g. to remove redundant definitions per-service, etc
    l
    w
    • 3
    • 6
  • k

    KJReactor

    04/21/2020, 1:06 AM
    Is there a way to run a prisma server without Docker?
    s
    • 2
    • 2
  • s

    Simon

    04/21/2020, 6:23 AM
    To
    cuid()
    or to
    autoincrement()
    that is the question... Assuming Postgres is being used, how do you normally go about choosing one for your id field? Imagine you need to explain the choice to a total DB n00b, how would you guide that person to make a choice? Thoughts?
    r
    w
    • 3
    • 4
  • r

    Rain

    04/21/2020, 6:29 AM
    Hi, I created a self relation, and then try to connect using
    prisma.user.update()
    but I received the following error
    Copy code
    Query interpretation error. Error for binding '1': Domain Error(Conversion Failure("record identifier", "assimilated record identifier"))
  • r

    Rain

    04/21/2020, 6:29 AM
    I am not sure how to debug what the error are
  • r

    Rain

    04/21/2020, 6:51 AM
    Ops, its look like I forgot to migrate up my database
    👍 1
  • r

    Rain

    04/21/2020, 7:35 AM
    Is that possible to updateMany relation ? I want to disassociate user from many chatroom with a single call.
    prisma.chatroom.updateMany({ where: { founderId: { id} }, data: { members: { disconnect: {id: user.id}})
    but the update many only allowed to change the chatroom property only.
    👍 1
    j
    a
    • 3
    • 4
  • s

    stephan

    04/21/2020, 10:47 AM
    Is there a way to write data_model file in JS/TS ?
  • s

    stephan

    04/21/2020, 1:51 PM
    can i write the data_model files in *.js*/*ts instead of *.prisma ?
    r
    • 2
    • 3
  • s

    stephan

    04/21/2020, 1:52 PM
    can i use data_model inheritance ?
  • o

    Oskar

    04/22/2020, 12:22 PM
    Something like this but for prisma would be sweet https://github.com/hasura/json2graphql
    💯 2
    r
    • 2
    • 1
  • t

    Tony Shannon

    04/22/2020, 2:12 PM
    Hi Prisma community Apols if this is the wrong place, but where best to ask about find some consultancy on Prisma? V Brief/focused piece of work but got a little funding I couldnt see any details on the prisma website Thanks Tony
    n
    • 2
    • 2
  • m

    Michael Sharpe

    04/22/2020, 5:28 PM
    Heyo! Can anyone here tell me about if/how Prisma solves the N+1 issue on graphql requests? Is optimization built into it under the hood? I can't seem to find any good discussion of this in the docs or the forum. Thanks!
    t
    • 2
    • 1
1...366367368...637Latest