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

    livingmine

    03/11/2020, 12:46 PM
    Currently as an alternative solution, i generate the schema.json manually using the apollo cli in my local machine
  • m

    Mike SOK

    03/12/2020, 12:24 AM
    Hi Guys, I am new to this. I was wondering if you guys could give me a hand here I wanted to use this 1 to many relation in prisma graphql. I struggling to get my mutation to work so it picks the current ID that exists in the page. Rather than hardcoding the existing ID like I have in the below code. @nikolasburk
    Copy code
    const CREATE_RATING_MUTATION = gql`
        mutation CREATE_RATING_MUTATION (
            $ratingSubject: String! 
            $ratingImage: String!
            $ratingDescription: String!
            $ratingStar: Int!
        ){
          createRating(
            data: { 
                ratingSubject: $ratingSubject
                ratingImage: $ratingImage
                ratingDescription: $ratingDescription
                ratingStar: $ratingStar
                item: { connect: { id: "ck7guni5wavx90986moqstcm3" }}                
              }) {
            id
            ratingSubject
            ratingImage
            ratingDescription
            ratingStar
              item {
                id
              }
          }
        }
    `;
    l
    • 2
    • 12
  • s

    Sajan Sanghvi

    03/12/2020, 8:51 PM
    Deploying service
    *laylo*
    to stage
    *prod*
    to server
    *default*
    !  ▸  'ETIMEDOUT': request to Http://xxx.xxx.xx/management  ▸  failed, reason: connect ETIMEDOUT xxx.xxx..xxx
  • s

    Sajan Sanghvi

    03/12/2020, 8:51 PM
    anyone getting this right now? I cant deploy to prisma at all
  • o

    Omobolanle Aro

    03/12/2020, 11:11 PM
    Hi guys, so I'm new to Prisma and GraphQL generally but I'm trying to build a project around it, It's been fun so far Prisma docs are great...but my issue right now is implementing social authentication (say facebook and gmail) for example. I'm a bit confused with resources I've stumbled upon online as I have to create some sort of Express server besides the Graphql-Yoga server I'm using for creating my resolvers. I'd appreciate any help/guide thanks✌️
  • r

    Rain

    03/13/2020, 6:03 AM
    Hi, I am using NestJS with Prisma, how do I add a new Mutation ? Do I need to change
    prisma-types.graphql
    for additional mutation ?
    m
    • 2
    • 21
  • p

    Pratik

    03/13/2020, 2:42 PM
    Hi! Does anyone know regarding a code-along video course on Apollo Federation?
    prisma cool 2
    c
    • 2
    • 1
  • l

    lionbrahh

    03/13/2020, 3:21 PM
    guys, how do you testing your GraphQL server ? did u use jest or mocha? and how to connect the server during in jest and mocha ? did u use supertest?
    a
    • 2
    • 6
  • b

    Brennan Erbz

    03/15/2020, 9:43 AM
    Does anyone know how to deploy Prisma to a VM on Google Cloud?
    • 1
    • 2
  • b

    Brennan Erbz

    03/15/2020, 9:43 AM
    Connecting to a SQL DB on Google Cloud too
  • m

    Mike SOK

    03/15/2020, 9:36 PM
    Does anyone know what this error message means? Cannot return null for non-nullable field Rating.item?
    r
    • 2
    • 2
  • f

    Francisco

    03/16/2020, 1:51 AM
    considering that only 4 out of the last 24 issues reported on github have been replied, I wanted to ask the question here. I'm getting an Authorization error when trying to deploy or access the admin interface in prisma. I have a local docker image running with prisma and a postgresql database. I'm setting up the secret management key in both client and server link to the full issue: https://github.com/prisma/prisma/issues/5043
  • e

    Ethan Pursley

    03/16/2020, 6:28 PM
    This question may have already been answered before, so I’m sorry for asking a duplicate question. But I’m running Prisma in Clustered mode (with prisma-prod docker containers) and I’m trying to do a prisma deploy. No matter what I do it always tries to deploy to
    cluster@default
    which an invalid db name. Does anyone know how I deploy to my regular database?
  • l

    Lee

    03/16/2020, 6:54 PM
    does prisma 2 require using any type of hosted services by prisma, or is it essential just a few JS libraries?
  • b

    bedeho

    03/16/2020, 7:05 PM
    Hi all! Is there any way to control or restrict the set of queries and mutations autogenerated from the datamodel?
  • e

    Ethan Pursley

    03/16/2020, 7:14 PM
    @bedeho you will have to abstract out the graphql from prisma with express/apollo-server or some equivalent.
    b
    • 2
    • 19
  • t

    Tarrence

    03/16/2020, 8:12 PM
    Hi. Is it possible to store metadata on a relationship? Like edge metadata in a graph?
  • t

    Tarrence

    03/16/2020, 8:13 PM
    I have a one-to-many relationship and would like to store some metadata about that relationship.
  • t

    Theresa Lee

    03/16/2020, 8:17 PM
    Does anyone have an answer to @Ethan Pursley’s question? We’re blocked on this to deploy 😞
  • t

    Theresa Lee

    03/16/2020, 9:17 PM
    To attempt a fix, we read the thread here https://www.prisma.io/forum/t/prisma-implementation-in-production/6105/10 and updated our config file to include
    enableManagementApi
  • t

    Theresa Lee

    03/16/2020, 9:18 PM
    However, now we are seeing increased crashes on Prisma
  • t

    Theresa Lee

    03/16/2020, 9:18 PM
    Does anyone have ideas on why running Prisma in clustered mode would prevent deploying?
  • a

    Alan

    03/16/2020, 10:14 PM
    Hi, I'm using the
    prisma-prod
    image (v1.30.4), and I've been pushing schema updates to my
    prisma-management
    but it does not seem all of our replicas for the worker nodes seems to be propagating the cache of the schema.
  • a

    Alan

    03/16/2020, 10:14 PM
    Is there a manual way to force a cache bust?
  • e

    Ethan Pursley

    03/16/2020, 10:19 PM
    Out of curiosity, how many containers are you running?
  • a

    Alan

    03/16/2020, 10:29 PM
    on one of our environments 2
  • a

    Alan

    03/16/2020, 10:29 PM
    on another, it can scale up to 20
  • e

    Ethan Pursley

    03/16/2020, 10:35 PM
    do you ever have prisma crash a lot at scale?
  • a

    Alan

    03/16/2020, 10:49 PM
    mmmmm
  • a

    Alan

    03/16/2020, 10:49 PM
    no not really, but the pods take forever to get into a ready state
1...352353354...637Latest