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

    Arnab

    02/04/2019, 10:07 AM
    I have the following mutation that I am running:
    Copy code
    async addPersonToCoop(parent, args, context) {
        return await prisma.updateCoop({
          data: {
            people: {
              connect: {id: args.personId}
            }
          },
          where: {id: args.coopId}
        })
      }
    When I do the query directly to prisma, it works:
    Copy code
    mutation{
      updateCoop(where: {
        id: "cjrmnfndf003x0854f33kk8c6"
      },
      data: {
        people: {
          connect: {id: "cjrq5m7qa004g0854lgiggn59"}
        }
      }
      ){
        name
        id
        people{
          id
          name
        }
      }
    }
    but when I run the mutation that I wrote myself, it says that it can't return null for a non-null field (the people field)
    n
    • 2
    • 8
  • c

    csbdeak

    02/04/2019, 10:13 AM
    could you paste here the people type and coop type
  • c

    csbdeak

    02/04/2019, 10:13 AM
    ?
  • e

    ezeikel

    02/04/2019, 11:34 AM
    Very noobish question but I followed the steps on the 'Get Started' guide on the website to setup Prisma for mongodb. I can change the datamodel and use the Playground to read and update data but where is the actual database? Can i not go a view the data? I know you can do this with a Demo Database via Prisma Cloud but cant see a way when creating a new database
    a
    d
    • 3
    • 5
  • u

    Uby

    02/04/2019, 11:54 AM
    Will there be a new channel for
    nexus
    ?
    👍 1
  • u

    Uby

    02/04/2019, 11:55 AM
    https://github.com/prisma/nexus
  • k

    Ken

    02/04/2019, 2:21 PM
    When my (local) prisma server gets hit with a lot of activity it dies with : prisma_1 | [Bugsnag - local / testing] Error report: com.bugsnag.Report@1e1a0a37 prisma_1 | java.util.concurrent.RejectedExecutionException: Task slick.basic.BasicBackend$DatabaseDef$$anon$2@2a3caff2 rejected from slick.util.AsyncExecutor$$anon$2$$anon$1@496b3645[Running, pool size = 9, active threads = 9, queued tasks = 1000, completed tasks = 2857] prisma_1 | at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063) prisma_1 | at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) prisma_1 | at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
    c
    • 2
    • 5
  • k

    Ken

    02/04/2019, 2:22 PM
    Anybody having similar problems or know the solution?
  • j

    Jeunesse Burce

    02/04/2019, 2:41 PM
    Hi! I'm new here, and new to graphql but is it possible to build a web app using gatsby.js paired with prisma.io?
    c
    c
    • 3
    • 4
  • z

    Zyon

    02/04/2019, 6:01 PM
    How do I configure schema model for many-many relationship?
    n
    • 2
    • 13
  • k

    Kenan Pulak

    02/05/2019, 1:11 AM
    Hi guys! I was wondering if anyone has used the Prisma CloudFormation template here (https://github.com/prisma/prisma-templates/blob/master/aws/fargate.yml) for an Aurora Postgres compatible database. I cloned the yaml file and changed all mysql mentions to the postgres versions as well as the the db connector to
    postgres
    and db port to
    5432
    to match postgres defaults. However when I’m launching the Fargate instance it keeps on failing. I think it is having an issue with the
    PRISMA_CONFIG
    env var because the logs show that it’s having difficulty parsing the string. Does anyone else have experience with this? Or if not, what is the structure of the env vars that Prisma is expecting?
  • k

    Kenan Pulak

    02/05/2019, 1:11 AM
  • k

    Kenan Pulak

    02/05/2019, 1:12 AM
    Also seems like it used Port 60000 as the default port to serve Prisma on, I don’t know if I will need to change that in the future but just trying to get it running for now. Thanks in advance!
    c
    • 2
    • 23
  • b

    bepasquet

    02/05/2019, 3:22 AM
    someone had this issue with execute raw im trying to get users from postgres database
    c
    • 2
    • 2
  • b

    bepasquet

    02/05/2019, 3:22 AM
    and is bringing my postgres user
  • b

    bepasquet

    02/05/2019, 3:23 AM
  • a

    Arnab

    02/05/2019, 12:31 PM
    I am trying to implement a connection resolver for a type that I have and I'm using apollo-server (not that I think that matters). For some reason, this just returns a "cannot return null for non-null field" error:
    Copy code
    async personConnection(parent, args, context, info) {
        return await prisma.personsConnection()
      }
    However, when I add the properties one by one:
    Copy code
    const aggregate = await prisma.personsConnection().aggregate()
    ...
    return { aggregate, pageInfo, edges }
    This works
    y
    w
    • 3
    • 9
  • l

    Luc

    02/05/2019, 2:44 PM
    Has anybody attempted to create a dropdown interface from an sdl? i.e. being able to query most of the data through and adaptable interface
  • y

    yolen

    02/05/2019, 3:16 PM
    question: is it possible to run/connect to a local databrowser hooked up to a prisma server running locally on docker-compose?
    k
    v
    • 3
    • 3
  • e

    ekfn

    02/05/2019, 3:32 PM
    Hello guys! Is there a list of companies (mb famous companies) using
    prisma
    ?
  • c

    csbdeak

    02/05/2019, 3:46 PM
    www.prisma.io
    😀 1
    prisma dark 1
    prisma cool 1
  • a

    antonbramsen

    02/05/2019, 4:14 PM
    What is this Nexus that people have started talking about? Is it a new product that will replace an existing one? Where can one read more about it?
    👀 4
    c
    • 2
    • 1
  • t

    tonymj

    02/05/2019, 6:00 PM
    Any body here using prisma and Go here?
  • t

    tonymj

    02/05/2019, 6:02 PM
    Am confuse on how to use it with jwt any help is appreciated
  • m

    Max Ast

    02/05/2019, 6:32 PM
    hey guys, does anyone know if you can migrate data from a prisma cloud demo database to a prisma cloud paid database? or even to a local database? Thanks in advance! 🙂
    ✅ 1
  • d

    Dan Ramos

    02/05/2019, 6:53 PM
    hey quick question...I'm working on my application Graphql service and a lot of the queries I just want to proxy through to the prisma server. Is there an easy way to do that w/ the generated files so I don't have to recreate all of the prisma schema/queries and mutations in my applicaiton server?
    c
    c
    • 3
    • 14
  • c

    CCBCodeMonkey

    02/05/2019, 7:16 PM
    hey if I am doing a query with a nested list, can I limit the return of the nested list?
  • m

    Marcin Mikołajczak

    02/05/2019, 8:39 PM
    hi
  • m

    Marcin Mikołajczak

    02/05/2019, 8:39 PM
    I’m trying to use graphql-request
  • m

    Marcin Mikołajczak

    02/05/2019, 8:40 PM
    and I get error code 200 for every query, content-type is set to application/json, what might be a problem? response is fine, but graphql-request reacts not as it should
1...203204205...637Latest