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

    spences10

    11/08/2018, 10:53 AM
  • s

    spences10

    11/08/2018, 10:53 AM
    😕
  • j

    julienkode

    11/08/2018, 12:23 PM
    How I can learn prisma ? there are a lot of different stuff like .graphqlconfig.yml graphqlgen.yml prisma yml What is the use of each one ?
  • p

    prilutskiy

    11/08/2018, 12:24 PM
    @julienkode I recommend YouTube. For example, if you search for “Ben Awad” you may find lots of interesting stuff on his channel
    👍 1
    👋 1
    n
    • 2
    • 1
  • j

    julienkode

    11/08/2018, 12:25 PM
    Thanks 🙂
  • s

    spences10

    11/08/2018, 12:29 PM
    Is anyone able to help with setting up a new database? I have set up the CLI and Docker for WSL following this: https://www.prisma.io/docs/get-started/01-setting-up-prisma-new-database-a002/ I get an error
    ERROR: In file './docker-compose.yml', volume must be a mapping, not a NoneType.
    c
    • 2
    • 3
  • s

    spences10

    11/08/2018, 12:30 PM
    The last two lines in the
    .yml
    file:
    Copy code
    volumes:
      mysql:
  • s

    spences10

    11/08/2018, 12:30 PM
    Empty, is that right?
  • m

    mezie

    11/08/2018, 1:27 PM
    My prisma mutations to insert into the database are acting weird. Duplicate data is being inserted. Can't seem to pinpoint where the issue is coming from.
  • m

    mezie

    11/08/2018, 1:27 PM
    My mutations looks like these:```createProject (root, { name }, { prisma }) { return prisma.createProject({ name }) }, createTask (root, { title, projectId }, { prisma }) { return prisma.createTask({ title, project: { connect: { id: projectId } } }) },```
  • p

    Pieter

    11/08/2018, 1:32 PM
    having some issue with #graphqlgen where optional params from the schema get generated interfaces as string or null, but the backend service has typescript’s shorthand
    ?
    for optional values. This results in
    string | undefined
    as opposed to graphqlgen generating
    string | null
    and then it does not match up
  • j

    joar

    11/08/2018, 1:32 PM
    Can I use the prisma client to connect to graphcool?
  • p

    Pieter

    11/08/2018, 1:32 PM
    @joar that should work
  • p

    Pieter

    11/08/2018, 1:32 PM
    but I suggest ejecting from graphcool and using prisma
  • c

    callan

    11/08/2018, 1:34 PM
    after updating to prisma 1.20 my post deploy hook isn't running anymore. Hook:
    Copy code
    hooks:
      post-deploy:
        - graphql get-schema -p prisma
    result:
    Copy code
    post-deploy:
    spawnSync graphql ENOENT
    Running graphql get-schema -p prisma ×
    Generating schema 36ms
    r
    • 2
    • 3
  • c

    callan

    11/08/2018, 1:34 PM
    going back to prisma 1.19 fixes it
  • r

    Ramin B

    11/08/2018, 2:43 PM
    Can someone please explain the difference between the “secrets” and tokens. There is a
    secret
    property set in
    prisma.yml
    , then there is the
    secret
    prop when you create a server and passed into the
    prisma-binding
    instance, and finally there’s also the
    managementApiSecret
    in the docker-compose.yml file. Are these all the same thing?
    d
    • 2
    • 7
  • p

    prilutskiy

    11/08/2018, 3:17 PM
    Does anybody know good lib for mocking prisma for unit tests?
  • p

    prilutskiy

    11/08/2018, 3:17 PM
    Prisma client
  • r

    Ramin B

    11/08/2018, 3:46 PM
    I am trying to disable the playground on my prisma service as well as graphql-yoga server, but not having much luck. I am passing the following setting
    playground: process.env.DISABLE_PLAYGROUND ? false : '/',
    into
    new GraphqlServer
    and deploying to now.sh, but i can still access the playground via https://labs-prisma-fedgrhwoff.now.sh/
    d
    • 2
    • 7
  • s

    spences10

    11/08/2018, 4:03 PM
    Ok, I have a Docker container running. And I can make a query for the users. Where is the data? I have followed the guide here: https://www.prisma.io/docs/get-started/01-setting-up-prisma-new-database-a002/ When I navigate to the folder where I did the
    prisma init
    there's no database???
    n
    • 2
    • 2
  • j

    Jared

    11/08/2018, 4:25 PM
    has anybody had trouble with prisma connecting to mysql 8 using the new
    caching_sha2_password
    authentication?
    d
    • 2
    • 6
  • n

    nbjooqla

    11/08/2018, 5:20 PM
    pls help create fragments
  • n

    nbjooqla

    11/08/2018, 5:21 PM
    i have created question here https://www.prisma.io/forum/t/pls-help-creating-prisma-graphql-fragment/4957
  • j

    jdoyle112

    11/08/2018, 5:38 PM
    Is anyone using prisma with graphql-yoga in production? I’m curious where people are hosting each.
    ➕ 1
    h
    n
    +2
    • 5
    • 10
  • r

    rwatts3

    11/08/2018, 6:22 PM
    How do you get access to the Prisma Admin closed Beta ?
  • p

    prolink007

    11/08/2018, 8:12 PM
    Can someone help me with getting a subscription to work using the prisma-client in a node application? Here is a link to my question on stack overflow. Thanks https://stackoverflow.com/questions/53215215/how-to-use-a-prisma-graphql-subscription-in-node-app
    ⁉️ 2
  • n

    nbjooqla

    11/08/2018, 11:18 PM
    anyone can provide example how to use fragmentReplacements ? what to pass to this?
  • h

    Hays Clark

    11/09/2018, 1:57 AM
    Anyone have a ‘Payload Too Large’ work-around? Can I send an array of 256KB Json blobs? e.g. myData: [Json!]! I’m trying to send a .geojson blob from client to Prisma.
    • 1
    • 1
  • j

    Jim

    11/09/2018, 6:29 AM
    @nilan Im trying to add a Heroku server through app.prisma.io but I get the error
    GraphQL error: Invalid credentials provided.
    . I have a Heroku server already up and running, it worked previously through this method.
1...152153154...637Latest