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

    dan

    02/08/2019, 3:02 AM
    Looking for the best way to host the prisma server in staging and production, any resources someone would like to suggest? Im using MongoDB Atlas for the DB
  • d

    dan

    02/08/2019, 3:04 AM
    I have seen the Tutorials on a few options, wondering if anyone has some insight to the best option based on their experience
  • c

    CCBCodeMonkey

    02/08/2019, 4:03 AM
    is there a way to get a count of a nested list?
    h
    • 2
    • 3
  • c

    CCBCodeMonkey

    02/08/2019, 4:03 AM
    i.e.
    user { followers { count } }
  • c

    CCBCodeMonkey

    02/08/2019, 4:06 AM
    just realizing you cant count a list... I can't figure out a way, I guess executeRaw
  • c

    CCBCodeMonkey

    02/08/2019, 4:07 AM
    if I have:
    Copy code
    type User {
      id: ID! @unique
      email: String! @unique
      name: String
      followers: [User!]!
    }
    how can I figure out how many followers a user has...
  • w

    wmj

    02/08/2019, 8:03 AM
    I wonder how can I use prisma-admin "https://www.prisma.io/admin".
    h
    • 2
    • 1
  • w

    wmj

    02/08/2019, 8:03 AM
    It looks amazing, but I can not figure out how can I use this service.
  • r

    rawriclark

    02/08/2019, 8:36 AM
    is GraphQL Nexus a replacement for GraphQL Yoga?
    h
    h
    • 3
    • 4
  • m

    Matthew Huang

    02/08/2019, 11:06 AM
    what’s the timeline for manual transactions? part of the reason i’m hesitant to switch from sequelize into prisma+graphql is that prisma doesn’t yet have great transactional support
  • d

    domko

    02/08/2019, 11:53 AM
    should there be an prisma deploy change if there is an change in the relation of an datamodel? i.E: i change
    @relation(link: INLINE)
    =>
    @relation(onDelete: CASCADE link: INLINE)
    ? dont get any changes displayed on prisma deploy with that change. Or is this also effected by this issue https://github.com/prisma/prisma/issues/3796?
    h
    • 2
    • 1
  • a

    Andrei Bacescu

    02/08/2019, 3:10 PM
    Hello guys. I found an interesting question on prisma forum and I really want to know how I could solve this kind of problem. Thanks in advance. The question: let’s say i am creating a hackernews clone there is a User and two kinds of post Link post Normal Post (Blog post) how do I model the relationship between user and posts in sdl and query them using prisma client
    h
    • 2
    • 2
  • d

    dan

    02/08/2019, 5:34 PM
    Looking for help with AWS Fargate deploy with Mongo as the connector, we are using MongoDB Atlas
  • d

    dan

    02/08/2019, 5:34 PM
    Can someone help me with the changes needed here?
  • d

    dan

    02/08/2019, 5:34 PM
    https://github.com/prisma/prisma-templates/blob/master/aws/fargate.yml
    • 1
    • 3
  • d

    dan

    02/08/2019, 5:47 PM
    Anyone??? @Prisma Community https://github.com/prisma/prisma-templates/issues/28
    u
    • 2
    • 1
  • i

    Iman

    02/08/2019, 6:18 PM
    Hi everybody, I followed the tutorial on the docs and everything went well, but when I open the playground, I see the error "Response not successful: Received status code 500" in the browser console. What should I do to fi this issue?
    h
    • 2
    • 1
  • i

    Iman

    02/08/2019, 6:18 PM
    I also see this warning: "[Deprecation] Using unescaped '#' characters in a data URI body is deprecated and will be removed in M71, around December 2018. Please use '%23' instead. See https://www.chromestatus.com/features/5656049583390720 for more details."
  • d

    dan

    02/08/2019, 6:20 PM
    Where and how is everyone deploying their prisma servers?!
  • d

    dan

    02/08/2019, 6:21 PM
    For some odd reason I cant use Heroku since prisma supports Mongo but only MySQL and PG during the heroku prisma server deployment process??
  • d

    dan

    02/08/2019, 6:21 PM
    The cloudformation template is broken for fargate
  • z

    Zyon

    02/08/2019, 7:08 PM
    Does my local node app (which connects to prisma server and downloads the generated graphql) have access to the generated prisma queries to run those queries locally from my app?
  • p

    Pablo Scandalo

    02/08/2019, 9:29 PM
    Hi everyone ! I have some doubts about typing my resolvers in GraphQL with graphqlgen. Really when I try to generate my models (Interfaces Typescript) from SDL. For example: My schema has the types I let you know below:
    Copy code
    type Audit {
      createDate: String!
    }
    
    type ServiceClient {
     id: ID!
     userName: String!
     password: String!
     auditInfo: Audit --> this property disappear 
    }
    But when I run the graphqlgen command I have the next result:
    Copy code
    export interface ServiceClient {
     id: string
     userName: string
     password: string
    }
    export interface Audit {
     createDate: string
    }
    How you can see, the interface ServiceClient lost the auditInfo property and I don't know why. I was reading the documentation and I don´t know why It has this behavior. Can you help me? Thanks you very much!
    h
    • 2
    • 1
  • d

    Darryl

    02/08/2019, 11:17 PM
    Hi, everyone. In the documentation (here: https://www.prisma.io/docs/get-started/03-build-graphql-servers-with-prisma-JAVASCRIPT-e001/#define-graphql-api), it mentions “The Post and User types are straightforward re-definitions of the models specified in datamodel.prisma, except that the Prisma-specific directives have been removed.” As opposed to writing everything again, is there a better way of getting things into schema.graphql?
    a
    • 2
    • 2
  • d

    Darryl

    02/08/2019, 11:18 PM
    I seem to recall seeing an import (commented out) that imported everything but I can’t find where I saw it.
  • d

    Darryl

    02/08/2019, 11:23 PM
    Also, is
    @model
    no longer used in
    datamodel.prisma
    ? I played around with Prisma last summer and have some code that’s clearly very, very outdated. It’s like using a complete different tool now, looking at the documentation.
  • c

    chas13

    02/08/2019, 11:54 PM
    Hi all! I am trying to setup prisma in docker for the first time and I get the below when I try prisma deploy` ▸ 'ECONNRESET': request to http://localhost:4466/management failed, ▸ reason: socket hang up ` below is the log - I am running mongo db in docker but it seems like prisma connected to mongodb from the log of the container where I run mongo... Can anyone help please?
    -.txt
    h
    • 2
    • 1
  • s

    sajmil

    02/09/2019, 1:56 AM
    graphcool down?
    👍 2
  • k

    kguller

    02/09/2019, 2:08 AM
    Console and https://api.graph.cool/system is down I think
    h
    • 2
    • 1
  • k

    kguller

    02/09/2019, 2:10 AM
    Is anyone aware of a channel to report production outages besides twitter?
1...206207208...637Latest