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

    pong

    01/23/2019, 7:38 PM
    I am trying to deploy a new service and I get this error: Cluster secret in env var PRISMA_MANAGEMENT_API_SECRET does not match for cluster default. where can i find my PRISMA_MANAGEMENT_API_SECRET?
  • h

    Henry

    01/23/2019, 7:47 PM
    Hey all, minor question - what sort of performance impact might I have by hosting a prisma server on a different network from my prisma-client based server? I currently have both hosted on digital ocean droplets with private networking but I’m investigating migrating my web server to lambdas for various benefits - wondering how the two servers being on different networks will affect my application.
    d
    • 2
    • 3
  • r

    rrva

    01/23/2019, 9:03 PM
    If I have an existing GraphQL API, which I would like to dump into a different datastore . with the same schema types as the existing API, so I can perform ad-hoc queries (perhaps in SQL depending on how that will work), is there some tooling that helps me automatically create a database schema from a GraphQL SDL and then copy the data over?
  • m

    mnichovcan

    01/23/2019, 9:56 PM
    Hello , i have this problem with prisma import. Import data is missing the "values" property. Data and schema are exported from graphcool.
  • i

    immediato

    01/24/2019, 12:23 AM
    does anyone know if it’s possible to use ‘apollo-datasource-rest’ with ‘graphql-yoga’?
  • h

    hugh

    01/24/2019, 6:49 AM
    left this in #documentation but maybe someone here can help?
  • y

    yanivos

    01/24/2019, 12:18 PM
    Hello, I wanted to know how can I execute an SQL query directly to the my Postgres DB? I want to query an avg of one of the parameters in my DB
    r
    • 2
    • 4
  • y

    yanivos

    01/24/2019, 2:26 PM
    how can I achieve avg function?
  • m

    mark

    01/24/2019, 2:30 PM
    Hi guys, i am stuck with how to create links between tables in grapqhl: How do i link dashboard and portfolio? A dashboard can have many widgets, one of which is portfolio.. For example, a newsfeed could be another widget. Portfolio and newsfeed would be both widgets, but their types would differ. (according to settings that the user provides). With how i defined it below, i can’t query all the way from an user to his widgets and what they represent.
    Copy code
    type Dashboard {
      id: ID! @unique
      name: String!
      widgets: [Widget!]! @relation(name: "DashboardToWidgets", onDelete: SET_NULL)
      user: User! @relation(name: "UserToDashboard", onDelete: SET_NULL)
      createdAt: DateTime!
      updatedAt: DateTime!
    }
    
    type Widget {
      id: ID! @unique
      name: String!
      createdAt: DateTime!
      updatedAt: DateTime!
    }
    
    type Portfolio {
      id: ID! @unique
      name: String!
      widget: Widget!
      assets: [Asset!]! @relation(name: "PortfolioToAsset", onDelete: CASCADE)
      createdAt: DateTime!
      updatedAt: DateTime!
    }
    e
    • 2
    • 51
  • e

    Ecker

    01/24/2019, 3:57 PM
    Anybody else know of better solutions to working with arrays of different types? Ref issue above ↑
  • a

    andykay

    01/24/2019, 4:16 PM
    anyone know why I'm getting this error with a subscription:
    {type: "error", id: "1", payload: {message: "Maximum call stack size exceeded"}}
  • m

    Max Ast

    01/24/2019, 4:25 PM
    prisma cloud down?
    l
    d
    j
    • 4
    • 20
  • a

    alexc

    01/24/2019, 5:40 PM
    hey! any idea when prisma admin will be launched?
  • a

    alexc

    01/24/2019, 6:08 PM
    or any way to get into the preview?
  • j

    Joseph Carrington

    01/24/2019, 6:20 PM
    If my model definition is this:
    Copy code
    type PortalUser {
      portalId: String! @unique
      createdAt: DateTime!
      updatedAt: DateTime!
      cart: PortalCart @relation(name: "UserCart", onDelete: CASCADE)
      OTTAuthorizations: [OTTAuthorization!]!
        @relation(name: "UserOTTAuthorizations", onDelete: CASCADE)
      isGuest: Boolean! @default(value: "true")
      dummy: String! @default(value: "Dummy")
    }
    And I try to see if a PortaUser exists using this:
    const userExists = await prisma.portalUser({ portalId: viewer.id })
    I get this:
    "Error: Cannot convert undefined or null to object",
    Is this expected behavior, and if so, what am I doing wrong?
    d
    • 2
    • 3
  • f

    faure

    01/24/2019, 8:19 PM
    https://prisma.slack.com/archives/CA491RJH0/p1548212391082200?thread_ts=1548189848.072300
  • f

    faure

    01/24/2019, 8:19 PM
    Bump!
  • f

    faure

    01/24/2019, 9:37 PM
    Does anyone have an idea about how to work around this? https://github.com/prisma/prisma-binding/issues/315
  • n

    Noah

    01/24/2019, 10:33 PM
    Hi - I'm having issues with my local prisma/postgres database creating links between nodes. I've followed the tutorials in the docs as well as the tutorial on howtographql.com. Pasting my stackoverflow question here in case anyone has advice. https://stackoverflow.com/questions/54356015/how-to-create-nested-connection-in-prisma-query
  • m

    mark

    01/24/2019, 10:37 PM
    the mutations are usually like this:
    Copy code
    return prisma.mutation.createPost(
          {
            data: {
              ...args.data,
              author: {
                connect: {
                  id: args.data.author,
                },
              },
            },
          },
          info,
        )
    n
    • 2
    • 4
  • m

    mark

    01/24/2019, 10:37 PM
    i dont see any ‘data’ key in your argument object
  • s

    Sayan

    01/25/2019, 9:18 AM
    I am running prisma on docker with mongodb. I started to work on my project and a got this error for the first time. It was working perfectly before this.
    h
    • 2
    • 2
  • s

    Sayan

    01/25/2019, 9:18 AM
  • s

    Sayan

    01/25/2019, 9:27 AM
    Nothing is running on those ports
  • a

    Arnab

    01/25/2019, 11:56 AM
    I'm trying to run prisma against an existing postgres instance to see what kind of datamodel it comes up with. However, the docker image seems to be stuck in some kind of restart loop. When I look in the docker logs, this is what I see over and over:
    Copy code
    Exception in thread "main" java.lang.RuntimeException: Unable to load Prisma config: com.prisma.config.InvalidConfiguration: Expected Boolean for field active, got <unset>
    	at scala.sys.package$.error(package.scala:27)
    	at com.prisma.config.ConfigLoader$.load(ConfigLoader.scala:38)
    	at com.prisma.local.PrismaLocalDependencies.<init>(PrismaLocalDependencies.scala:38)
    	at com.prisma.local.PrismaLocalMain$.delayedEndpoint$com$prisma$local$PrismaLocalMain$1(PrismaLocalMain.scala:15)
    	at com.prisma.local.PrismaLocalMain$delayedInit$body.apply(PrismaLocalMain.scala:12)
    	at scala.Function0.apply$mcV$sp(Function0.scala:34)
    	at scala.Function0.apply$mcV$sp$(Function0.scala:34)
    	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
    	at scala.App.$anonfun$main$1$adapted(App.scala:76)
    	at scala.collection.immutable.List.foreach(List.scala:389)
    	at scala.App.main(App.scala:76)
    	at scala.App.main$(App.scala:74)
    	at com.prisma.local.PrismaLocalMain$.main(PrismaLocalMain.scala:12)
    	at com.prisma.local.PrismaLocalMain.main(PrismaLocalMain.scala)
    Any clues?
    • 1
    • 1
  • k

    k0ff33

    01/25/2019, 1:29 PM
    Is data browser working for you in Prisma Cloud? Mine is stuck and shows only a spinner.
    s
    • 2
    • 2
  • b

    Bo Biene

    01/25/2019, 2:25 PM
    Hi any ETA for Microsoft SQL Server Client drivers?
  • g

    Guilherme

    01/25/2019, 2:54 PM
    I’m using prisma-binding (v2.2.16) to query users, however the response has always a “Object: null prototype” before the results. Using the Playground direct from Prisma server it works without any issue. Have someone experienced this issue before?
    • 1
    • 1
  • g

    Guilherme

    01/25/2019, 2:54 PM
    Copy code
    [ [Object: null prototype] {
        id: '5c4b185e027439000776c46c',
        name: 'test',
        email: '<mailto:test@test.com|test@test.com>' } ]
  • d

    domko

    01/25/2019, 3:57 PM
    hey guys, is relation filtering in the current prisma (1.25.3) with mongo connector possible? cant find any hint 😞 edit: https://stackoverflow.com/questions/54369787/filter-by-id-of-a-relation
1...195196197...637Latest