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

    hinsxd

    11/09/2018, 7:42 AM
    Hi everyone. I want to ask something about database design/flow design. Suppose my Users’
    rank
    depends on the number of created Posts, some other numeral values also depends on the
    rank
    . What is the best way to organize data? The best way I could think of, is to do all calculation on Query, so that the
    rank
    values will not be written to database and thus reduce chance of error. But then there seems to be TONS of database calls. What do you think?
    a
    • 2
    • 4
  • y

    yolen

    11/09/2018, 12:37 PM
    I have a kubernetes cluster running on gcloud with prisma and a yoga server. I have an ingress setup and the google loadbalancer. My problem is that I cannot get the playground to show up nor curl to the external endpoint. Any tricks out there? I have tested the deployment using port forwarding -> playground pops up and I have tested the service by ssh into a node and doing a curl to the service endpoint -> service pops up. Perhaps some special rules must be set in the loadbalancer?
    • 1
    • 1
  • e

    Etel

    11/09/2018, 1:39 PM
    Hey Folks! 😁 We know you’re working on some really cool stuff! It could be great to shine a light on all the wins happening weekly and give people a chance to applaud you! - Did you build something awesome the world needs to know about? - Learn something you didn’t know before? - Discover something worth sharing? If you’re feeling brave: we invite you to share any wins for the week in the #showcase channel. FFTW— Friday for the Win 😜
    🎩 2
    🙌 1
    fast parrot 2
    🚀 2
    💚 2
    prisma dark 2
    graphql 2
    💪 2
  • p

    prolink007

    11/09/2018, 6:19 PM
    Can someone help me with this issue? I posted it in the prisma forums. https://www.prisma.io/forum/t/how-to-get-non-scalar-updatedfields-on-subscriptions/4971
    ⁉️ 1
    e
    • 2
    • 7
  • l

    lawjolla

    11/09/2018, 7:57 PM
    I like the new site! https://www.prisma.io
    🙌 6
  • g

    Gorodov Maksim

    11/10/2018, 10:22 AM
    Why do I get such error? I found solution - https://stackoverflow.com/questions/52635916/error-cannot-use-graphqlschema-object-graphqlschema-from-another-module-or but I still do not understand why I'm getting it because it worked before okay
    h
    • 2
    • 3
  • m

    mezie

    11/10/2018, 4:00 PM
    Any idea why this is happening?
  • c

    cmckinstry

    11/10/2018, 6:44 PM
    Would someone be able to point me in the right direction for a
    prisma generate
    bug. I’m guessing it has to do with my schema, but can’t seem to figure out how to fix it
  • c

    cmckinstry

    11/10/2018, 6:45 PM
    Here’s my post on the forums: https://www.prisma.io/forum/t/question-about-relations/4976
    q
    • 2
    • 1
  • r

    roberto.guerra

    11/10/2018, 6:50 PM
    Do you need to specify the
    relations
    between the types?
  • r

    roberto.guerra

    11/10/2018, 6:52 PM
    Copy code
    type Link {
        id: ID! @unique
        createdAt: DateTime!
        description: String!
        url: String!
        postedBy: User @relation(name: "User")
        votes: [Vote!]!
    }
    
    type User {
        id: ID! @unique
        name: String!
        email: String! @unique
        password: String!
        links: [Link!]!
        votes: [Vote!]!
    }
    
    type Vote {
        id: ID! @unique
        link: Link! @relation(name: "Link")
        user: User! @relation(name: "User")
    }
  • c

    cmckinstry

    11/10/2018, 6:52 PM
    Lemme try that
  • c

    cmckinstry

    11/10/2018, 6:58 PM
    That_made_the_following_errors.txt
  • c

    cmckinstry

    11/10/2018, 7:00 PM
    This now brings me back to the original error
    Syntax Error: Expected Name, found }
    So__I_decided_to_try_something_else.txt
  • r

    roberto.guerra

    11/10/2018, 7:05 PM
    is that the only error you get?
  • c

    cmckinstry

    11/10/2018, 7:17 PM
    Yup
  • c

    cmckinstry

    11/10/2018, 7:18 PM
    Outside of a 429 to Prisma’s instance of Raven
  • c

    cmckinstry

    11/10/2018, 7:18 PM
    Copy code
    Generating schema... 20ms
     ▸    Syntax Error: Expected Name, found }
    
    Get in touch if you need help: <https://www.prisma.io/forum/>
    To get more detailed output, run $ export DEBUG="*"
    error Command failed with exit code 1.
  • c

    cmckinstry

    11/10/2018, 7:19 PM
    Heres the debug message:
  • c

    cmckinstry

    11/10/2018, 7:19 PM
    -.txt
  • c

    cmckinstry

    11/10/2018, 7:21 PM
    Would it make sense to open up a bug report on Github for this?
  • r

    roberto.guerra

    11/10/2018, 8:17 PM
    ah
  • r

    roberto.guerra

    11/10/2018, 8:17 PM
    do you need a space b/w the type definitions?
  • r

    roberto.guerra

    11/10/2018, 8:18 PM
    Copy code
    type Link {
      id: ID! @unique
      createdAt: DateTime!
      description: String!
      url: String!
      postedBy: User @relation(name: "UserOnLink")
      votes: [Vote!]! @relation(name: "LinkOnVote")
    }
    
    type User {
      id: ID! @unique
      name: String!
      email: String! @unique
      password: String!
      links: [Link!]! @relation(name: "UserOnLink")
      votes: [Vote!]! @relation(name: "UserOnVote")
    }
    
    type Vote {
      id: ID! @unique
      link: Link! @relation(name: "LinkOnVote")
      user: User! @relation(name: "UserOnVote")
    }
  • r

    roberto.guerra

    11/10/2018, 8:18 PM
    based on the example in the docs https://www.prisma.io/docs/1.4/reference/service-configuration/data-modelling-(sdl)-eiroozae8u/
  • g

    Gorodov Maksim

    11/11/2018, 2:44 AM
    Why do I get this error? It is a server on graphql-yoga, I passed correct endpoint and secret, cannot understand what is wrong 😞
    h
    d
    • 3
    • 12
  • k

    KrisTemmerman

    11/11/2018, 1:00 PM
    Hi everyone, I’m trying to set up Prisma on my host it doesn’t support docker-compose
  • k

    KrisTemmerman

    11/11/2018, 1:00 PM
    Anyone here using captainduckduck as a PaaS?
  • m

    Moazzam

    11/11/2018, 1:07 PM
    I have a question. I am an iOS Developer and if you have seen STICKY APP for iMessage, do anyone know how it extracts the image ?
  • r

    rein

    11/11/2018, 1:28 PM
    hey guys, I was wondering who here is using zeit now for their production graphql-yoga server deployments. I am trying to decide between a digital ocean droplet with docker (where my prisma server is currently housed) or taking the somewhat easier way of using zeit now. Any experience would be helpful!
    t
    v
    +2
    • 5
    • 9
1...153154155...637Latest