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

    Joseph

    03/19/2019, 4:15 AM
    I'm trying to start using Prisma (following a Udemy course) and getting this error after prisma deploy
    Copy code
    ERROR: No cluster could be found for workspace '*' and cluster 'default'
    
    {
      "data": {
        "generateClusterToken": null
      },
      "errors": [
        {
          "message": "No cluster could be found for workspace '*' and cluster 'default'",      "locations": [
            {
              "line": 3,
              "column": 9
            }
          ],
          "path": [
            "generateClusterToken"
          ],
          "code": 222
        }
      ],
      "status": 200
    }
    I've googled it a bit and the replies all talk about random things I'm not even touching, like ApiSecret and setting the cluster property in prisma.yml
    h
    • 2
    • 11
  • l

    Lars-Jørgen Kristiansen

    03/19/2019, 8:08 AM
    Anyone using connecting to prisma from docker? I have trouble runnin
    prisma deploy
    .. Seems like prisma forces me to use http:// or https:// in prisma.yml endpoint, but with docker I need to use the docker dns hostname
    h
    p
    +2
    • 5
    • 87
  • n

    Nicola Nardella

    03/19/2019, 9:04 AM
    Morning guys, anyone know how setup intellisense for
    graphql-tag
    when editing
    gql
    literal? I'm trying to use this plugin https://github.com/Quramy/ts-graphql-plugin but I don't understand how configure. Thanks
    h
    • 2
    • 9
  • u

    Uby

    03/19/2019, 11:34 AM
    Good morning! Are people using
    nexus
    with a microservices approach? Multiple prisma servers, stitching these, extending them. So far it feels limiting the code first approach when you have to work with an external SDL.
    h
    • 2
    • 6
  • s

    sunrising

    03/19/2019, 11:37 AM
    Hi guys, I am using graphcool-framework, when I try to create a document (sale) with a relation to an array of other documents (attachments) I get this error:
    GraphQL error: Variable '$attachments' cannot be non input type '[Attachment!]'.
    What does it mean? where I am going wrong?
    h
    • 2
    • 3
  • p

    prilutskiy

    03/19/2019, 11:50 AM
    Guys, does anybody has a flow of how to work with migrations when using prisma?
    h
    a
    • 3
    • 10
  • r

    Rens Laros

    03/19/2019, 1:05 PM
    Does anyone have a good starter kit for prisma, apollo and nextjs?
    h
    • 2
    • 1
  • r

    Rens Laros

    03/19/2019, 1:05 PM
    And thank's alot for developing this awesome software team!
  • r

    rem

    03/19/2019, 1:47 PM
    (still googl'ing) but is there a way to select distinct fields with Prisma?
    h
    • 2
    • 1
  • r

    rem

    03/19/2019, 2:26 PM
    Anyone know if "Prisma GraphQL API" was intentionally dropped from Prisma, and why?
  • r

    rem

    03/19/2019, 2:26 PM
    I was kinda using it, but it's been dropped from 1.28.
  • i

    impowski

    03/19/2019, 2:29 PM
    I’m using Prisma 1.29 beta with CircleCI and on deployment it keep sending me this
    Copy code
    Authenticating...
    Opening <https://app.prisma.io/cli-auth?secret=TOKEN> in the browser
    
    Could not open the authentication link, maybe this is an environment without a browser. Please open this url in your browser to authenticate: <https://app.prisma.io/cli-auth?secret=TOKEN>
    l
    d
    • 3
    • 4
  • i

    impowski

    03/19/2019, 2:29 PM
    How do I remove this step?
  • b

    btotharye

    03/19/2019, 5:12 PM
    anyone know if there are any good docs or anything explaining things to know about before deploying a prod prisma setup? Like updating existing types with new info, etc. I'd hate to get a bunch of stuff in and then decided I need to update the API and start running into issues about it saying existing records being affected, etc.
    g
    • 2
    • 5
  • a

    Artur

    03/19/2019, 5:15 PM
    h
    • 2
    • 1
  • a

    Artur

    03/19/2019, 5:16 PM
    Hey folks - can somebody help me please. 2 weeks ago, my production prisma server started having issues with certain requests taking 60+ seconds to respond which brings down the prisma server and cause a 1-2 min outage for our users.
    p
    • 2
    • 3
  • a

    Artur

    03/19/2019, 5:17 PM
    I’m using AWS Elastic Beanstalk to host my prisma server and RDS postgres db. I’ve turned on slow query but haven’t found any things unusual there. Any advice on how to debug this issue would be greatly appreciated!
  • r

    Rory Kelly

    03/19/2019, 5:26 PM
    I was curious how everyone mocks with prisma client? We have a graphql yoga serve in front of prisma that we use to add authorisation and integrate with external Apis. I made a utility that allows you to test prisma calls like this:
    Mocking_prisma.ts
    h
    • 2
    • 1
  • r

    Rory Kelly

    03/19/2019, 5:27 PM
    It uses graphql-tools under the hood and is working out quite well for us. However it relays on us generating our own copy of prisma bindings via graphql-binding.
  • i

    Ian

    03/19/2019, 5:39 PM
    Hi guys, I’ve been playing around with Prisma with gqlgen. I noticed that the datamodel schema is a subset of the GQLang. In that case, my workflow would require me to 1) add to the main schema 2) add the same model into the datamodel schema for Prisma. Are there plans on merging the two so I only have to add the new model once?
    h
    • 2
    • 1
  • c

    Corey Lanier

    03/19/2019, 9:01 PM
    I'm working through a tutorial, and cannot get things to post to Prisma from GraphQL, because when I look at my Prisma, I'm pushing two "ghost" fields that are not in my datamodel.graphql file but are being sent to Prisma anyway, and are of a data type that I cannot post with GraphQL, but are required, thus making nothing going to Prisma of this type succeed. How can I make these fields not create in this type?
    h
    • 2
    • 1
  • i

    Ian

    03/19/2019, 9:18 PM
    also is there any support for database replicas??
  • j

    Jack

    03/19/2019, 9:28 PM
    Hey guys, I'm trying to use the
    @pgRelation
    directive, as described in the docs (https://www.prisma.io/docs/datamodel-and-migrations/introspection-POSTGRES-soi1/#inline-relation-column), in order to deploy prisma for my existing database. I don't want to migrate this existing database, since I have a codebase that relies on the structure as-is. My datamodel looks like this:
    Copy code
    type AdminUser @pgTable(name: "admin_users") {
      id: ID! @unique
    }
    
    type Customer @pgTable(name: "customers") {
      id: ID! @unique
      adminUser: AdminUser! @pgRelation(column: "admin_user_id")
    }
    But when I try and deploy I see this error:
    Copy code
    Global
        ✖ Could not find the model table customers in the database
    Anyone have any ideas why this might be? That customers table does exist.
    • 1
    • 1
  • b

    blocka

    03/20/2019, 5:18 AM
    Hey, I'm using the vscode extension and it works great, until I update my schema. The extension doesn't see the changes
    n
    • 2
    • 2
  • c

    Corjen

    03/20/2019, 8:30 AM
    Hi! I have this query:
    Copy code
    await prisma.companies({ where: { id_in: ['ID_3', 'ID_2', 'ID_1'] } })
    where it would like to get the companies returned in the same order as the
    id_in
    array. Is that possible somehow?
  • a

    Andre Coetzee

    03/20/2019, 8:51 AM
    @Corjen can’t you just sort by Id and do a reverse ?
    c
    s
    • 3
    • 12
  • a

    Andre Coetzee

    03/20/2019, 8:52 AM
    passing in a sort to the query that sorts by id and DESC
  • u

    Uxname

    03/20/2019, 11:53 AM
    does anyone know why prisma cli ask me for auth on "prisma deploy" command when i use it locally (in docker). It writes
    Could not open the authentication link, maybe this is an environment without a browser. Please open this url in your browser to authenticate: ....
    And how disable it? I have tried run
    prisma logout
    before deploy, no effect
    h
    s
    • 3
    • 7
  • s

    sunrising

    03/20/2019, 2:06 PM
    hi @Harshit, any ETA for https://github.com/prisma/graphcool-framework/pull/513 this is becoming really critical...
  • n

    nuno

    03/20/2019, 3:27 PM
    Is there a way to disable the Prisma CLI "Update available" message?
    👍 1
1...238239240...637Latest