https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# prisma-client
  • p

    prilutskiy

    04/24/2019, 10:17 AM
    Guys, how do you use
    upsert
    ? I see there are two fields inside:
    create
    and
    update
    . I expected upsert to receive just an object for upadting, or for creating if id is empty
  • p

    prilutskiy

    04/24/2019, 10:19 AM
    https://www.prisma.io/docs/prisma-client/basic-data-access/writing-data-TYPESCRIPT-rsc7/#creating-or-updating-objects-upserts
  • p

    prilutskiy

    04/24/2019, 10:19 AM
    Nevermind, found in docs
  • j

    John Kueh

    04/28/2019, 11:22 PM
    hi all, how do you guys run e2e / integration testing with Prisma? Do you use a test db? or is there a mocking library?
  • s

    Suneeth Lenin

    06/09/2019, 2:36 PM
    hi, Have you guys ever faced any problem with logical OR in prisma requests ?? . In my case, the types in prisma-client contain OR inside WhereInput. But OR is missing from actual prisma schema . I confirmed it by visiting prisma server graphql playground.
  • s

    Suneeth Lenin

    06/10/2019, 2:50 AM
    Problem is with Mongodb only. OR and NOT were removed by prisma to support relation filtering
  • d

    dany

    06/13/2019, 7:15 AM
    hello! can i get info about enum??
  • d

    dany

    06/13/2019, 7:15 AM
    how can i insert enum in row?
  • d

    dany

    06/13/2019, 7:16 AM
    Copy code
    prisma.createModel({enumField: 'ENUM_FIELD'})
    t
    • 2
    • 1
  • m

    Marwan Rabbâa

    07/01/2019, 11:31 AM
    Hi, I have an open source benchmark project and I wonder if I can be sponsored by
    prisma
    ?
  • s

    Stefan Schneider

    07/01/2019, 6:42 PM
    Is there a way to communicate with a RESTful endpoint only with the client or do I always need a server?
  • a

    Andrew O.

    07/02/2019, 7:59 PM
    What's the difference between Prisma-Client and Prisma-Binding? I'm a little confused by the many different ways of doing similar things with Prisma.
  • a

    Andrew O.

    07/03/2019, 5:34 PM
    Can Prisma generate take advantage of a GraphQLConfig file?
  • a

    Andrew O.

    07/03/2019, 5:35 PM
    Additionally I'm have issues with Prisma generate not seeing my .env file. I get the following message:
  • a

    Andrew O.

    07/03/2019, 5:37 PM
    -.pl
  • a

    Andrew O.

    07/03/2019, 5:37 PM
    When I run: prisma generate -p ./prisma/auth/prisma.yml -e ./config/.env.local
  • s

    Sohail Khan

    07/09/2019, 8:46 AM
    Is there any Long Int type for datamodel.prisma
  • s

    Saket

    07/25/2019, 4:31 AM
    Hi,. I am trying to connect my local postgres with prisma. But is is showing couldn't connect to url 4466,when I try to run prisma deploy. I have used docker ip address in prisma.yml for endpoint
  • t

    tafelito

    08/14/2019, 5:10 PM
    What are the plans to implement atomic operations? If it’s planned as per the issue #1349, is it going to be added to prisma v1 or v2, or both? Any ETA?
  • b

    Biel Simon

    08/30/2019, 4:35 AM
    Hi, Does anyone know if prisma-client has an integrated dataloader? If you make (and await) 2 calls to prisma client that end up on the same query does it make only one request?
  • d

    deactivateduser

    09/05/2019, 6:55 PM
    Is there a function with prisma to subscribe to items being added? I have no graphql server only prisma.
    t
    • 2
    • 6
  • d

    deactivateduser

    09/05/2019, 9:32 PM
    I have an async function which returns a
    prisma.upsertItem
    function. What is the correct data type? I assumed it should be
    Promise<ItemPromise>
    but it is not working, neither is
    Promise<Item>
  • y

    yishengdd

    09/15/2019, 4:19 PM
    prisma client in golang does not support subscription. Any work around available? Thx!
  • s

    Spencer Gardner

    09/21/2019, 12:16 AM
    Can someone explain what the purpose of the
    prisma-schema
    autogenerated file is? It looks like it contains a bunch of queries and mutations that are intended to talk to the prisma service. Are they purely intended to do this, or are they also intended to be expose to a consuming service to use (such as a React app). I imagine that you would probably want to write your own queries and mutations that build off of
    prisma-schema
    , but would like some insight here.
  • f

    Fransjo Leihitu

    10/07/2019, 5:28 PM
    hi all .. question about selecting fields using fragments (https://www.prisma.io/docs/prisma-client/basic-data-access/reading-data-TYPESCRIPT-rsc3/#selecting-fields) .. is there a way to exlcude fields? The fragment is great, but you need to supply all the fields you want, but I only want to exclude 1 (and or maybe more)
  • s

    Spencer Gardner

    10/14/2019, 7:25 PM
    Have a very similar question ^: I can't find docs on how to query for a record and include other records referenced via foreign keys. I'm just getting back the non-foreign key fields. I would hate to use fragments for this...hopefully that's not the only way.
    s
    • 2
    • 2
  • s

    Spencer Gardner

    10/14/2019, 7:27 PM
    For example, if I have the following datamodel:
    Copy code
    type Fruit {
      size: Int!
      owner: Human!
    }
  • s

    Spencer Gardner

    10/14/2019, 7:27 PM
    I only get
    size
    back, but not the owner, when I use something like
    await prisma.fruit({id...)
  • s

    Spencer Gardner

    10/14/2019, 7:37 PM
    Another solution I found is to grab
    prisma.fruit({id...}).owner
    and tack the result on to the original query for
    fruit
    , but this seems pretty inefficient
  • s

    Spencer Gardner

    10/18/2019, 4:35 PM
    Any ideas on this, guys and gals? ^^ 😄
12345...23Latest