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

    rem

    01/22/2019, 1:17 PM
    If I'm running a custom prisma server, would this be right approach to subscriptions (to trigger a webhook, for instance): https://gist.github.com/remy/6775d437123cf5b581e8e5d982c1a792 - akin to replicating subscriptions in the
    prisma.yml
    config.
    a
    • 2
    • 1
  • l

    lewisedc

    01/22/2019, 1:57 PM
    Is anyone else's prisma cloud db not responding?
    d
    t
    +3
    • 6
    • 24
  • d

    divyendu

    01/22/2019, 2:22 PM
    We are aware of an ongoing issue with the demo servers. I will notify here once the issue is fully resolved 🙏
    ❤️ 3
    👀 2
    r
    • 2
    • 5
  • s

    Sayan

    01/22/2019, 2:57 PM
    Is there any way to delete services from the dashboard?
    ❓ 1
    k
    • 2
    • 3
  • h

    Hmm

    01/22/2019, 6:59 PM
    I am doing the Wes Bos advanced-react course and when doing
    Copy code
    prisma deploy
    it shows
    Copy code
    Creating stage dev for service sik-fits √
    Deploying service `sik-fits` to stage `dev` to server `prisma-us1` 663ms
    
    Changes:
    
      User (Type)
      + Created type `User`
      + Created field `id` of type `ID!`
      + Created field `name` of type `String!`
      + Created field `email` of type `String!`
      + Created field `updatedAt` of type `DateTime!`
      + Created field `createdAt` of type `DateTime!`
    
    Applying changes (0/6) /
    And then gets stuck there
  • h

    Hmm

    01/22/2019, 7:00 PM
    Not sure if it's related to the Demo server issue or my code, but I copied the code directly from the tutorial
    d
    s
    • 3
    • 8
  • s

    ScottAgirs

    01/22/2019, 7:01 PM
    ⚠️ Deployment issue. Persists with fresh accounts with zero addons.⚠️
    d
    a
    +2
    • 5
    • 44
  • i

    impowski

    01/22/2019, 8:00 PM
    Found a bug and don’t know where to put an issue
  • i

    impowski

    01/22/2019, 8:00 PM
    To which project
  • i

    impowski

    01/22/2019, 8:01 PM
    Basically it’s a
    prisma-client
    directory
    -.ts
    d
    • 2
    • 2
  • i

    impowski

    01/22/2019, 8:02 PM
    I suppose
    prisma
  • i

    impowski

    01/22/2019, 8:06 PM
    Here is an issue: https://github.com/prisma/prisma/issues/3906
    d
    • 2
    • 3
  • f

    faure

    01/22/2019, 8:44 PM
    Where's the list of error codes? I just want to confirm
    3010
    is for violating unique constraints
    d
    • 2
    • 9
  • d

    dan

    01/22/2019, 9:22 PM
    Hey guys, looking for the best testing setup. Can anyone point me to some great resources?
    🙏 2
  • b

    bepasquet

    01/23/2019, 3:39 AM
    hi im new with graphql prisma client doesnt allow info object? i was using prisma before and used to allow it, any doc reference for this? this affect bringing data from prisma to grapql-yoga? ex: instead of bringing from pisma user: {name} bringing all the user object
    e
    • 2
    • 3
  • b

    bepasquet

    01/23/2019, 3:39 AM
    thanks
  • a

    atmat

    01/23/2019, 6:45 AM
    When I ran the below query from getting started frontend tutorials https://www.howtographql.com/react-apollo/1-getting-started/,
    Copy code
    {
      feed {
        links {
          id
          description
          url
        }
      }
    }
    I was getting the error
    Copy code
    {
      "data": null,
      "errors": [
        {
          "message": "Field 'count' of type 'Int' must not have a sub selection. (line 4, column 7):\n      count {\n      ^",
          "locations": [
            {
              "line": 2,
              "column": 3
            }
          ],
          "path": [
            "feed"
          ]
        }
      ]
    }
  • m

    Mo

    01/23/2019, 9:01 AM
    Hi everyone, I’m having a weird issue when implementing pagination with the after and first attributes, the results always have duplicates for instance if i fetch the first the first 15 records and then fetch another 15 after them i ended up having 5 or more from the previous query in the second one even though the id for the end cursor was the last record that was returned, and if I Lower the number of record to 10 it happens but not always
    Issue_with_cursor_pagination_using_after_and_first_attributes.js
    j
    • 2
    • 15
  • j

    Johnson

    01/23/2019, 12:07 PM
    Hi ✌️, I am looking for a way to append fields to the info argument before querying data from Prisma. Any ideas how I can do it? Here is the forum post: https://www.prisma.io/forum/t/prisma-append-custom-field-to-info-argument-when-querying-data/5783
  • b

    Benjamin Sampson

    01/23/2019, 12:12 PM
    Hey 👋 I'm trying to query relational data, if I query either I get "Cannot return null for non-nullable field Query.post/user"
    Copy code
    User: {
            posts(parent) {
              return prisma.user({ id: parent.id }).posts();
            },
          },
          Post: {
            user(parent) {
              return <http://prisma.post|prisma.post>({ id: parent.id }).user();
            },
          },
    Any help would be highly appreciated
    n
    h
    • 3
    • 10
  • r

    rem

    01/23/2019, 1:31 PM
    I've just been (attempting) to migrate to TS from JS (without any TS experience 😱 ), and when I make a query, I'm getting a failure saying
    Project not found: 'backend$%7Ddev%7D'
    - I particularly note the
    %7D
    (which is a
    {
    ) and I'm not sure what they're doing there… Any ideas?
    d
    d
    • 3
    • 3
  • n

    Naka

    01/23/2019, 1:35 PM
    Hey ppl, I am having some trouble to make a prisma export ...I am using a graphql server hosted in heroku. I think the heroku timeout don't let me finish this process... any suggestion on how to execute a this export?
    s
    h
    • 3
    • 5
  • m

    mbenaissa

    01/23/2019, 3:03 PM
    Hello Guys 👋 I have an issue with Prisma CLI when I generate
    Go
    client You can find more details on
    <https://github.com/prisma/prisma/issues/3277#issuecomment-456827273>
    d
    • 2
    • 5
  • r

    rem

    01/23/2019, 3:10 PM
    when running
    prisma generate
    with JS option, it's creating this string:
    Copy code
    endpoint: `${process.env["PRISMA_ENDPOINT"]}}${process.env["PRISMA_STAGE"]}}`,
    which is producing this string:
    <http://localhost:4466/backend/}dev}>
    - anyone seen this before?
    s
    m
    d
    • 4
    • 8
  • s

    Sébastien

    01/23/2019, 3:29 PM
    Hi there 👋. I'm following this tutorial: https://www.prisma.io/tutorials/deploy-prisma-to-digitalocean-ct12/ but I'm not able to init my prisma service (step 5):
    Copy code
    !    'ERR_INVALID_URL': Invalid URL: 139.61.212.166/docker-test/dev
    Running
    docker ps
    in my DO droplet shows that my prisma server is running.
    h
    • 2
    • 4
  • t

    thecrazyhoodie

    01/23/2019, 6:07 PM
    Hey there, I am not sure why I am receiving this error.
    Copy code
    ts
    const macroExists = await this.client.prisma.$exists.macro({ key });
    Copy code
    graphql
    type Macro {
      key: String! @unique
      value: String!
      author: String!
    }
    Error
    Copy code
    (node:381) UnhandledPromiseRejectionWarning: TypeError: Cannot convert undefined
    or null to object
        at Function.keys (<anonymous>)
        at Client.extractPayload (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:246:24)
        at Client.<anonymous> (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:115:52)
        at step (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:47:23)
        at Object.next (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:28:53)
        at fulfilled (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:19:58)
        at processTicksAndRejections (internal/process/next_tick.js:81:5)
    (node:381) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
    d
    • 2
    • 1
  • p

    pong

    01/23/2019, 6:41 PM
    Hey there, I am new to Prisma and i was wondering if it is possible to create a copy of my graphql database hosted in heroku. I could not find any online documentation about this. I created my server/database via the prisma website.
    h
    • 2
    • 5
  • j

    jdoyle112

    01/23/2019, 6:49 PM
    Are subscriptions not working for anyone else? Suddenly none of my subscriptions are working
  • j

    jdoyle112

    01/23/2019, 7:11 PM
    Actually this isssue is only on my local server. Any idea why that would be the case?
  • k

    KamehaMehdi

    01/23/2019, 7:32 PM
    Hi everyone im a french junior developer and i do the tutorial on GraphQL, so I’m at the moment when I have to generate the Prisma file but when I tape “prisma generated” the console says “Cannot read property ‘startWith’ of undefined” the problem is that i never write “startWith” 😕 Her’s my code
    m
    • 2
    • 1
1...194195196...637Latest