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

    Jeremiah

    09/06/2019, 8:41 PM
    I have a query, and I'm wondering if there's a way to only return
    stats
    from
    matches
    that have the same
    player id
    as the
    id
    returned from
    players
    .
    Copy code
    const TEAM_QUERY = gql`
      query TEAM_QUERY($name: String!) {
        team(where: { name: $name }) {
          id
          name
          players {
            id
            summonerName
            matches {
              id
              duration
              stats {
                player {
                  id
                }
                damage
                gold
              }
            }
          }
        }
      }
  • f

    florian

    09/06/2019, 11:55 PM
    Hello, I thought I would share this with you before leaving the community. For the past two years I have been running a service alone on
    Graphcool
    . It has been a smooth experience to be honest, no downtime until 3 days ago. All our functions hosted on Graphcool started failing returning an obscure error. Among those functions, the one handling authentication failed making the application unavailable for our 400~ paid users. During 2 days, we had no response for support, other users were impacted. Then yesterday they contacted us to confirm a fix was deployed. A first look at the #graphcool-framework showed positive feedback, but our functions were still throwing errors. Someone from support sent me a DM and we tried several things, but to no avail. At some point, the support person told me they couldn't help me further, then signed off. You can imagine the frustration, I have been cooling down my users, offering refunds for the past 2 days. Now I am 3 days into downtime, and the only solution would be to migrate to Prisma or another service and refund all my clients while I make it happen. Unfortunately, this is going to take some time because I was running that thing alone, so I decided to refund all my clients and close the service. This is going to put a dent on my personal revenue, but at least on the bright side it's impacting only me. As a conclusion, guys if you are still running something on Graphcool, migrate ASAP and if I were you I would think twice using any cloud offering from Prisma. They seem to always go for new shiny toys and abandon their previous projects, pretty sure they'll do the same thing to Prisma once Prisma 2 comes out. I realize this might come off bitter, and the worst is I absolutely love the products, but the unreliability of Prisma as a company makes it impossible for me to base my future projects on their offering.
    👏 4
    i
    • 2
    • 1
  • t

    Teddy B

    09/07/2019, 7:23 AM
    Quick question: when is prisma 2 scheduled to have a stable version? I am about to start a new project and wondering whether to take the chance and use
    prisma2
    or stick with
    the current prisma
    d
    • 2
    • 2
  • d

    Dillon

    09/07/2019, 11:41 AM
    Hey everyone! I was wondering if someone could point me to an example of using Prisma with read replica support? The use case would be using an AWS aurora database which has an endpoint for write (primary DB instance) and a read-only endpoint which points to the various read replicas. Any help would be appreciated!
  • b

    Bamboozilla

    09/07/2019, 5:46 PM
    Hi guys, I have a simple question regarding subscriptions, here is my post if anyone can help me out https://www.prisma.io/forum/t/how-to-make-a-subscription-resolver-for-sub-type/7848
  • m

    Mic Cross

    09/08/2019, 8:04 PM
    Following Andrew Mead to the letter ... docker-compose up -d -> Creating prisma_prisma_1 ... done, $ prisma deploy = Could not connect to server at http://localhost:4466. Please check if your server is running. CurrPorts says nothing running on 4466. Appreciate a hint on how to start debugging this. docker ps= 0.0.0.0:4466->4466/tcp prisma_prisma_1
    s
    d
    • 3
    • 9
  • r

    Ronnie Gauny

    09/09/2019, 12:30 AM
    if anyone needs help part-time on prisma/graphql projects from a senior dev let me know…currently between gigs and looking for a new one
    m
    • 2
    • 1
  • l

    LeoKim

    09/09/2019, 7:55 AM
    hello?
  • l

    LeoKim

    09/09/2019, 7:57 AM
    scalarlist filter or where query, I want to know about this.
  • l

    LeoKim

    09/09/2019, 7:58 AM
    If you know, please reply.
  • j

    Josef Henryson

    09/09/2019, 2:34 PM
    Hi, I started a Prisma server with MySQL in local docker from a tutorial. I would like to be able to look into MySQL database with Sequel Pro, but it fails to connect. It seems like the port is not public / available in the host:
    Copy code
    $ docker port prisma-test_mysql_1 3306
    Error: No public port '3306/tcp' published for prisma-test_mysql_1
    Any ideas how I can do this?
    d
    • 2
    • 9
  • l

    Luis Pallares

    09/09/2019, 4:07 PM
    hello, Prisma is great, thanks to all the staff for this advance, I am not relying anymore on ORMs when is too much for particular cases, instead, Prisma is doing the trick really well.
  • l

    Luis Pallares

    09/09/2019, 4:11 PM
    Something I would like to be pointed is on how to deploy in production environments, currently I am using the prisma+docker solution, but its time to move out to what could be the production stage, I have 3 parts now on my architecture, 0. the nodejs graphql yoga backend, 1. the docker+prisma data layer connected to a postgres instance and 2. the react apollo frontend, usually I use netlify to deploy 0 and 2, but how should I proceed to go with the #1? thanks in advance,
  • j

    Josef Henryson

    09/09/2019, 4:42 PM
    When I deployed my converted schema from GC to Prisma I got this error:
    Copy code
    Valid values for the strategy argument of `@scalarList` are: RELATION
    So I added
    Copy code
    @scalarList(strategy: RELATION)
    and it worked. But when I inspect my DB I see that the related table is empty after import from GC where there are values for this field. What happens is that for MyTable with myField: [String!] @scalarList(strategy: RELATION) another table is created with name: MyTable_myField with columns: nodeId, position, value. I got 4 different tables with this structure and all are empty after import. Any ideas on how I could fix this?
  • n

    Nelson Pecora

    09/09/2019, 7:42 PM
    Hi hi, are all many-to-many relations in prisma directed?
    • 1
    • 5
  • e

    evondev

    09/10/2019, 2:46 AM
    hello guys how to use graphql aliases if i dont know how many records in my database ? thanks
  • t

    TEMILOLUWA OJO PHILIP

    09/10/2019, 9:00 AM
    hello everyone, Hi everyone, I followed the installation process on the prisma docs but when i try to
    deploy
    it replies with this error.
    Could not connect to server at <http://localhost:4466>. Please check if your server is running.,
    What could be the problem, by the way I am running on a windows pro.
    s
    • 2
    • 1
  • m

    Martí Crespí

    09/10/2019, 9:12 AM
    Check that you have the server running, if not, try to remove the container and compose it again.
  • j

    JamesJ

    09/10/2019, 9:13 AM
    Hi, I am trying to deploy prisma to a GCP cluster and a CloudSQL database which is turning out to be very tricky. I have a frontend React client hosted in AppEngine on GCP and have deployed a graphql-yoga backend container into my GKE cluster and packaged the prisma-prod:1.34.8 official image with GCP’s cloud_sql_proxy and deployed that container also. This got the database connected to Prisma server, but then I ran into the issue of primary/secondary Prisma servers and the managementAPI when I tried to connect to my server from Prisma Cloud. There is very little documentation that I can find on how to deploy to GCP GKE so I have gone through days of trial and error and wondering if anyone has any tips/advice on how to set this all up.
    👀 2
    c
    • 2
    • 2
  • k

    Kalid Diriye

    09/10/2019, 4:30 PM
    Hi I am new to Prisma and I was flowing to a tutorial, and I came to a place that the instructor is using authentication that Prisma implemented but when I create a new project I can't found a typescript-advanced graphql server( database+ authentication) as he used. How can I make get it?
  • g

    gem

    09/10/2019, 4:39 PM
    hello i’d like to ask one question about rules to one admin/moderator/team member ?
  • h

    haf

    09/10/2019, 7:37 PM
    How do I go from https://github.com/graphql-boilerplates/react-fullstack-graphql into the prisma "admin" panel for that project?
  • h

    haf

    09/10/2019, 7:37 PM
    I got it running; how do I go from here?
  • h

    haf

    09/10/2019, 7:44 PM
    The advanced typescript sample gives "TSError: ⨯ Unable to compile TypeScript:" when starting it.
  • h

    haf

    09/10/2019, 7:45 PM
    But it directs me to the admin panel, which is nice
  • h

    haf

    09/10/2019, 7:50 PM
    https://www.prisma.io/blog/announcing-prisma-2-zq1s745db8i5 fails on the 'seed' step
  • h

    haf

    09/10/2019, 7:51 PM
    And the link to GraphQL's example is broken too
  • i

    Irena

    09/10/2019, 7:54 PM
    Hi 👋 all 🙋🏻‍♀️
    👋 2
  • a

    Awey

    09/10/2019, 10:54 PM
    Has anyone here every setup authentication / authorization with apollo-server, express-session and redis? If you have, can you please take the time to help me out.
    h
    • 2
    • 1
  • j

    Josef Henryson

    09/11/2019, 8:14 AM
    What is your best practice on how to create a schema.graphql from the generated prisma-schema.js? Type it manually? Use nexus? Something else?
1...310311312...637Latest