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

    ashki

    08/21/2018, 1:28 PM
    Yop been using prisma in prod for a couple months very good experience so far but I'm running into some infra migrations going from having prisma managed by fargate (which I've had terrible experience with) to kuberenetes. Currently I have 2 prisma instances pointing to the same MYSQL DB (one on fargate which is active, and the other one managed by k8 which just sits there) What would be the correct way to initialize my new instance?
    n
    • 2
    • 4
  • f

    Filip

    08/21/2018, 1:30 PM
    Hi everyone
  • f

    Filip

    08/21/2018, 1:31 PM
    I'm using prisma in my project
  • f

    Filip

    08/21/2018, 1:31 PM
    but I have a problem with subscriptions
  • f

    Filip

    08/21/2018, 1:32 PM
    I gave a following schema
  • f

    Filip

    08/21/2018, 1:32 PM
    -.txt
  • f

    Filip

    08/21/2018, 1:32 PM
    And thats my resolver
  • f

    Filip

    08/21/2018, 1:33 PM
    -.php
  • f

    Filip

    08/21/2018, 1:33 PM
    I subscribe in playground
  • f

    Filip

    08/21/2018, 1:33 PM
    however anytime i try to create new Test object
  • f

    Filip

    08/21/2018, 1:34 PM
    my subscription crashes and returns
  • f

    Filip

    08/21/2018, 1:34 PM
    Untitled.js
    b
    c
    • 3
    • 2
  • a

    Apple123

    08/21/2018, 2:25 PM
    Do you know what's up with the forum? Can't register for days now, tried with different browsers, but it does not work!
    n
    • 2
    • 2
  • z

    zonofthor

    08/21/2018, 2:57 PM
    I'm confused about the best practices for dev/prod workflow after having deployed Prisma on docker... I guess it's safest to develop aginst a dev instance (eg Prisma cloud) while production api connects to docker (production) instance. If I make changes in schema between versions then, how would I deploy changes without breaking live app? ... I realize this is not neccessarily a Prisma question but asked here since Prisma is what I'm learning from, just wondering if there are any tutorials/guides on this for common patterns migrating Prisma?
    a
    • 2
    • 3
  • z

    zonofthor

    08/21/2018, 4:09 PM
    prisma.yml defines endpoint as
    endpoint: ${env:PRISMA_ENDPOINT}:${env:PRISMA_PORT}/${env:PRISMA_SERVICE}/${env:PRISMA_STAGE}
    which doesn't work in dev environment where Prisma cloud endpoint is
    <https://eu1.prisma.sh/jane-doe/myservice/dev>
    ?
    a
    • 2
    • 9
  • j

    jamesmbowler

    08/21/2018, 6:50 PM
    I'm trying to hack on prisma cli, using a local copy (separate from the npm download). I clone the repo, and when I try to execute (from prisma/cli/packages/prisma-cli-core) : node-ts /src/index.ts, I get Error: Cannot find module 'graphql-config'. This may be just a general javascript/typescript question, so apologies.
  • j

    jamesmbowler

    08/21/2018, 7:27 PM
    So I ran the build.sh from cli/scripts folder. Now I'm getting this error: TSError: ⨯ Unable to compile TypeScript: src/commands/playground/index.ts(106,5): error TS2322: Type '3000' is not assignable to type 'string'.
  • j

    jamesmbowler

    08/21/2018, 7:32 PM
    So I corrected this line, port: number, and now I get no output.
  • j

    jamesmbowler

    08/21/2018, 7:47 PM
    ha, I've been executing the wrong file, prisma-cli/src/index.ts is working. oops.
  • e

    ed

    08/21/2018, 7:53 PM
    is the cascade delete available in graphcool?
    c
    • 2
    • 1
  • e

    ed

    08/21/2018, 7:54 PM
    I see this is available for prisma https://github.com/prisma/prisma/issues/2159
  • e

    ed

    08/21/2018, 7:54 PM
    but I tried to do the same in my `types.graphql`using
    onDelete: SET_NULL
    but didnt work
  • e

    ed

    08/21/2018, 7:54 PM
    thanks in advance
    d
    • 2
    • 1
  • a

    aroman

    08/21/2018, 7:59 PM
    hello 🙂 is the login page down?
    n
    • 2
    • 2
  • a

    aroman

    08/21/2018, 7:59 PM
    we’ve gotten this in 3 different computers
  • d

    Daniel Mahon

    08/21/2018, 11:13 PM
    Hello all! How do you upgrade a prisma cloud Heroku deployment
    l
    • 2
    • 2
  • a

    abhiaiyer

    08/22/2018, 1:17 AM
    @aroman we’re gonna hotfix that soon! sorry about that!
    👍 1
  • c

    chandu0101

    08/22/2018, 5:03 AM
    https://stackoverflow.com/questions/51960154/whats-the-best-way-to-represent-types-without-id-in-prisma
  • z

    zonofthor

    08/22/2018, 5:29 AM
    Say I have 3x different (web) apps - can a single Prisma server (+database) be able to serve these in isolation? Is this maybe the idea behind service-names in endpoint?
    n
    • 2
    • 4
  • c

    cory

    08/22/2018, 8:04 AM
    Is it possible to put your graphql-yoga server and React app on the same Heroku box as your Prisma instance? (use case: reducing latency)
1...103104105...637Latest