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

    ivor

    09/20/2018, 7:23 PM
    If someone is having issues with Linode here's some quick instructions for it. https://gist.github.com/ivorpad/f39bd6c0e659f8d2991b48f1c8198113 It's pretty similar to DigitalOcean's but more focused on Linode.
    👍 1
    n
    • 2
    • 2
  • f

    faure

    09/20/2018, 8:35 PM
    Hi, what's happened to the AWS Fargate tutorial?
    t
    • 2
    • 2
  • c

    Chris H

    09/20/2018, 8:41 PM
    Anyone worked out a clever way to switch up .env files on the graphql boilerplate
    yarn dev
    run command? I would like to usually run the graphql server against the prisma on my local docker but occasionally run the graphql server against a staging environment on my production prisma host.
    p
    j
    • 3
    • 7
  • z

    zonofthor

    09/20/2018, 10:01 PM
    is there a way to disconnect all nodes for a relation without iterating all connected nodes first... something like
    Copy code
    mutation {
      updateUser(
        where: { id: "o5FGT6i1xyGEMRXShMPU71ZGd" }
        data: {
          editorForStations: { *CLEAR ALL CONNECTED NODES* }
        }
      ) {
        id
      }
    }
    n
    • 2
    • 3
  • x

    xiaoqf10

    09/21/2018, 4:20 AM
    Is there any way to use extend types in schema.graphql?
  • x

    xiaoqf10

    09/21/2018, 4:20 AM
    https://www.prisma.io/forum/t/prisma-extend-type-support/2249
    m
    • 2
    • 3
  • x

    xiaoqf10

    09/21/2018, 5:11 AM
    anyone can help?
  • n

    Nick

    09/21/2018, 7:30 AM
    I have seen people having linting on the client side like in a .gql file Is this possible with prisma? How does the frontend know what the schema looks like in the backend. The guy I saw doing this had the data in a mock.json I think this has to do with graphql codegen, if could generate a .ts file or .graphql then you should be able to generate .json aswell. I'm also noticing that there is an option when you run graphql-cli
    graphql
    That you should be able to output the schema as JSON file Anyone out there that have done something like this with prisma please share this workflow. Is there such thing as graphql-linting?
    d
    • 2
    • 9
  • l

    luhagel

    09/21/2018, 9:06 AM
    Heya, it looks like
    prisma export
    produces invalid data when it comes to custom json fields.
    Copy code
    prisma import --data export-2018-09-21T09:00:40.144Z.zip
    Unzipping 31ms
    Uncaught exception, cleaning up: Error: Value "{\"prop\":\"whatever\",\"label\":\"Label\"}" for field personalDownloads is not a valid Json
    Validating data ✖
    n
    • 2
    • 4
  • s

    Sh4reef

    09/21/2018, 12:17 PM
    How can I import graphql
    type
    from another graphql file using Prisma Client doesn’t work, But it does work with Prisma Binding ?
    m
    n
    • 3
    • 11
  • n

    Nick

    09/21/2018, 1:00 PM
    schemaPath: src/schema.graphql
    how do I output
    schema.json
    from the
    schema.graphql
    How do I turn schema.graphql into schema.json?
    -.yaml
    n
    • 2
    • 8
  • w

    woss

    09/21/2018, 1:09 PM
    hi guys, how do you tackle the situation when you have textarea with following content
    Here it comes " / ' \s /t
    without breaking the server. my guess is that i am doing something wrong with the mutation template. which looks like this:
    Copy code
    return client.mutate({
        mutation: gql`
             mutation {
              updateMyself(
                data: {
                  name: "${name}",
                  givenName: "${givenName}",
                  familyName: "${familyName}",
                  username: "${username}",
                  email: "${email}",
                  description: "${description}", `Here it comes " / ' \s /t`
                }
              ) {
                name
                givenName
                familyName
            
              }
            }
          `,
      })
    n
    • 2
    • 4
  • s

    Seva

    09/21/2018, 1:34 PM
    Hi, guys. Is this project https://github.com/prisma/chromeless deprecated already in favour of Puppeteer?
    n
    • 2
    • 2
  • e

    ed

    09/21/2018, 2:49 PM
    what is the email to contact the support for graphcool? Quite crazy it is not available in the
    <https://graph.cool>
    site
    n
    • 2
    • 2
  • n

    Nick

    09/21/2018, 3:07 PM
    @nilan There is small debate going on https://github.com/prisma/graphql-yoga/issues/392#issuecomment-423558047 People are asking for the file-handling example on the docs it points to 404 page
  • m

    mikepuglisi

    09/21/2018, 6:54 PM
    Is there an equivalent to the prisma-binding
    forwardTo
    function in the new
    prisma-client
    ? Related:

    https://www.prisma.io/forum/uploads/default/original/1X/3a0c7fe31812577f5d725707d6beaf65e0acc95b.jpg▾

  • m

    mikepuglisi

    09/21/2018, 7:19 PM
    How do you create a "*Connection" resolver using the new
    prisma-client
    When I try the following, I get and error:
    return context.prisma.postsConnection({ })
    Error:
    Field 'postsConnection' of type 'PostConnection' must have a sub selection.
    Full Repo / File: https://github.com/mikepuglisi/prisma-client-example/blob/master/index.js I've also tried this based on something I found online.
    Copy code
    return context.prisma.postsConnection({ }, `{
            aggregate {
              count
            }
          }`)
  • j

    JohnS

    09/21/2018, 7:55 PM
    My company is not receiving support. Our account has been blocked, and our app is inaccessible. Users are writing us, and there's nothing we can do. Why? Because we need to upgrade our plan, but your site will not allow it. There's an internal server error. Furthermore, we're unable to update the credit card on our account. Can we please have someone help us out?
    l
    • 2
    • 2
  • f

    faure

    09/21/2018, 10:39 PM
    Hi! DAE has an error when running prisma init and trying to connect to an existing MySQL (local in my case).
  • f

    faure

    09/21/2018, 10:40 PM
    -.txt
  • s

    Sh4reef

    09/21/2018, 11:37 PM
    I’m getting null when I’m listening for newMessage node
  • s

    Sh4reef

    09/21/2018, 11:38 PM
    message has been deleted
  • s

    Sh4reef

    09/21/2018, 11:39 PM
    What is the appropriate way to return correct value?
  • s

    Sh4reef

    09/21/2018, 11:39 PM
    I’m using
    prisma/1.17.0-beta.30
  • s

    Sh4reef

    09/21/2018, 11:47 PM
    I tried with async/await still getting
    null
    w
    • 2
    • 2
  • m

    Menegazzi

    09/22/2018, 3:22 AM
    Hello, Prisma is indicated to develop a hospital system?
  • j

    JohnS

    09/22/2018, 3:37 AM
    This is what I get when I try to purchase an upgrade: "Whoops. Looks like an internal server error. Please contact us from the Console (https://console.graph.cool) or via email (support@graph.cool) and include your Request ID: eu-west-1systemcjmcvtvbw5ycy0126d3ocn36m"
  • l

    Luke

    09/22/2018, 8:14 AM
    anyone else get
    Copy code
    ➜  prisma ll
    total 32
    -rw-r--r--  1 lukehamilton  staff   384B Sep 21 21:55 datamodel.graphql
    -rw-r--r--  1 lukehamilton  staff   177B Sep 21 21:57 prisma.yaml
    -rw-r--r--  1 lukehamilton  staff   5.1K Sep 21 21:54 seed.graphql
    ➜  prisma yarn prisma deploy
    yarn run v1.9.4
    warning package.json: No license field
    $ prisma deploy
     ▸    Couldn't find `prisma.yml` file. Are you in the right directory?
    
    Get in touch if you need help: <https://www.prisma.io/forum/>
    To get more detailed output, run $ export DEBUG="*"
    error Command failed with exit code 1.
    info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
    ?
  • a

    ajmakhl

    09/22/2018, 9:11 AM
    can someone point me to an example react prisma project?
    n
    • 2
    • 1
  • c

    cRUSHER

    09/22/2018, 1:18 PM
    hello guys
1...122123124...637Latest