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

    Daniel Martin

    07/17/2018, 10:21 AM
    Can anyone help on this?
    👍 1
  • j

    jsan

    07/17/2018, 1:26 PM
    how can i pass in some values through header while calling the graphcool api endpoint, I tried using header property in lokka but header is always an empty object
  • p

    patrick_madx

    07/17/2018, 2:44 PM
    Is it possible to make sure this message does not popup:
    [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
    It's a local docker image, so we don't want the Prisma could integration
    a
    • 2
    • 3
  • s

    siyfion

    07/17/2018, 4:31 PM
    Is there any way that I can query a COUNT ?
    m
    n
    • 3
    • 8
  • s

    sortiz

    07/17/2018, 4:33 PM
    Hello, I've been facing an issue that prisma have, I can not connect prisma to a remote db host
    o
    n
    • 3
    • 2
  • s

    sortiz

    07/17/2018, 4:33 PM
    but it will connect to a db container
  • h

    Haider Malik

    07/17/2018, 4:38 PM
    Copy code
    {
      "error": "Unexpected token < in JSON at position 0"
    }
  • h

    Haider Malik

    07/17/2018, 4:38 PM
    Can anyone help me?
    h
    n
    +2
    • 5
    • 12
  • j

    jameshenry

    07/17/2018, 9:04 PM
    I am working with the new heroku integration, it’s so easy to get started, great work!
  • j

    jameshenry

    07/17/2018, 9:04 PM
    However, now that I am trying to make my setup a bit more real world, some things are not entirely clear
  • j

    jameshenry

    07/17/2018, 9:05 PM
    The thing I really want to be able to do is make use of Heroku’s Review Apps feature - to deploy a new app for each PR
  • j

    jameshenry

    07/17/2018, 9:05 PM
    In order to do that I think I need to recreate the commands/setup that Prisma is running when you use the integration
  • j

    jameshenry

    07/17/2018, 9:05 PM
    But that is naturally opaque to us as users. I can seemingly get a fresh database configured (using a combination of heroku.yml and app.json), but I am unclear on how to start a fresh prisma service for the Review App
  • j

    jameshenry

    07/17/2018, 9:06 PM
    Is there a Dockerfile/script or equivalent that the Prisma folks can point us to so that we can wire all this together for Heroku review apps?
    n
    • 2
    • 4
  • j

    jameshenry

    07/17/2018, 9:07 PM
    (As an aside, I would also be curious to know how others using the heroku integration are handling this point - how are you handling the actual active development process, making safe updates to your prisma server and database, CI etc?)
  • t

    Tatsuyuki Ishi

    07/18/2018, 3:40 AM
    Does the Heroku integration continuosly perform health check resulting in free Dyno hours being drained?
    t
    • 2
    • 1
  • c

    chameleon

    07/18/2018, 4:34 AM
    graph.cool seems really slow now. I'm getting timeout errors. Anyone else seeing the same thing?
  • l

    Loic

    07/18/2018, 6:41 AM
    hi! is it possible to have a field named differently in the Prisma schema and in my own graphql server schema. E.g. I’ve got
    uniqueId
    in my data model but I’d like it to be
    id
    in my schema. I feel like the solution is easy but I can’t crack it! Thanks!
    j
    n
    • 3
    • 9
  • j

    James Bradly

    07/18/2018, 7:37 AM
    Hello! Can someone from Prisma bother to reproduce this issue? Thank you very much. https://github.com/prismagraphql/prisma/issues/2761
    n
    • 2
    • 1
  • h

    Haider Malik

    07/18/2018, 7:48 AM
    schema.graphql
    Copy code
    type User {
      id: ID! @unique
      email: String!
      password: String!
      role: Role @default(value: "CANDIDATE")
    }
    prisma.graphql
    Copy code
    type Query{
      user(where: UserWhereUniqueInput!): User
    }
     input UserWhereUniqueInput {
      id: ID
    }
    I want to find the user on the based on email. Prisma did not add the email field in the
    UserWhereUniqueInput
    type
    Copy code
    async function login(root, { email, password }, ctx, info) {
        const user = await ctx.db.query.user({ where: { email: email } }, ` { id password } `)
        ....
    }
    I received this error message from Prisma Playground
    Copy code
    {
      "data": null,
      "errors": [
        {
          "message": "Variable \"$_v0_where\" got invalid value {\"email\":\"<mailto:Jane2@email.com|Jane2@email.com>\"}; Field \"email\" is not defined by type UserWhereUniqueInput.",
          "locations": [],
          "path": []
        }
      ]
    }
    can anyone help me?
    a
    • 2
    • 15
  • c

    Corjen

    07/18/2018, 9:19 AM
    He everyone! I have a small problem 🙂 In my data model a have a User type and a File type. The File type can be connected to a User, so far no issues. I was wondering though if it's possible to connect the same file to multiple users? Currently prisma disconnects the file from the current user and reconnects to the updated user.
    Untitled.js
  • u

    user

    07/18/2018, 10:31 AM
    A file was commented on
  • u

    user

    07/18/2018, 11:56 AM
    A file was commented on
  • u

    user

    07/18/2018, 11:59 AM
    A file was commented on
  • c

    Corjen

    07/18/2018, 11:59 AM
    A of course 🙂 Great, thanks! 😄
  • u

    user

    07/18/2018, 12:08 PM
    A file was commented on
  • a

    aroman

    07/18/2018, 3:23 PM
    Hello community. Seeking some advice. I am currently using a graphql server with prisma as a gateway. This
    gateway
    is hitting another `graphql-server`(microservice). In turn that
    graphql-server
    does another mutation to the database. I am hitting from my gateway:
    createReport(input: ReportInput!): JSON!
    Copy code
    input ReportInput {
      queryLimit: Int!
      businessEntityId: Int!
    }
    This works fine: The graphql Server I’m hitting triggers this mutation:
    createReport(input: JasperInput!): Report
    My issue is when using playground: I get this back:
    Copy code
    {
      "data": null,
      "errors": [
        {
          "message": "Cannot return null for non-nullable field Mutation.createReport.",
          "locations": [
            {
              "line": 2,
              "column": 3
            }
          ],
          "path": [
            "createReport"
          ]
        }
      ]
    }
    l
    • 2
    • 7
  • a

    aroman

    07/18/2018, 3:23 PM
    I was hoping to see what could cause this error
  • m

    Mohamed Khalil

    07/18/2018, 4:14 PM
    Hello__I_got_this_erreor_while_create_prisma_server_on_faragate_thanks.js
  • f

    Fitch

    07/18/2018, 4:28 PM
    Prisma login 502ing for anyone?
    n
    • 2
    • 1
1...858687...637Latest