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

    user

    07/18/2018, 6:41 PM
    A file was commented on
  • a

    agartha

    07/18/2018, 7:45 PM
    @Mohamed Khalil What database are you using?
  • a

    agartha

    07/18/2018, 7:46 PM
    Source: https://www.prisma.io/docs/tutorials/deploy-prisma-servers/aws-fargate-joofei3ahd/
  • a

    artindaniel

    07/18/2018, 8:00 PM
    Hey all, I'm having following problem: This works
    Copy code
    query { 
    	question(id:"cjjq0h0le2ww60b29ro4tumhc") {
        id
      }
    }
    This doesn't work
    Copy code
    fragment MyFragment on Question {
      id
    }
    
    query { 
    	question(id:"cjjq0h0le2ww60b29ro4tumhc") {
        ...MyFragment
      }
    }
    Error
    Copy code
    {
      "data": {
        "question": null
      },
      "errors": [
        {
          "message": "Field 'postDb' of type 'PostDb' must have a sub selection. (line 2, column 3):\n  postDb(where: $_v0_where)\n  ^",
          "locations": [],
          "path": [
            "postDb"
          ]
        }
      ]
    }
    a
    • 2
    • 7
  • d

    dine

    07/18/2018, 8:21 PM
    Hello ! We have a React-Apollo-GraphQL yoga-Prisma app here, and we have troubles deploying in production. We already deployed our Prisma Server on HEROKU, and it's working well with our Backend and Front-End hosted locally. The problem is, we're struggling deploying the Backend-End on Heroku as well, and make it communicate with Prisma and our Front-End (still hosted locally). (some errors examples that we had :
    Copy code
    heroku[router]: at=error code=H15 desc="Idle connection" method=GET path="/" host=<http://sheltered-chamber-26085.herokuapp.com|sheltered-chamber-26085.herokuapp.com> request_id=724f3b54-1589-4524-aeac-57014c1d06da fwd="96.20.43.3" dyno=web.1 connect=0ms service=55039ms status=503 bytes= protocol=http
    Copy code
    Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
    heroku[web.1]: Stopping process with SIGKILL
    heroku[web.1]: Process exited with status 137
    heroku[web.1]: State changed from starting to crashed
    ) Has someone already tried to push a node-GraphQL yoga Server on Heroku, and make it communicate with a Heroku hosted Prisma server ? And how did you connected them with the front ? Someone has some ideas about that issue ? We're real beginners here, so don't hesitate to ask me more details if I'm not clear ^^;
    l
    • 2
    • 2
  • e

    emilrmoeller

    07/19/2018, 6:04 AM
    Hands down šŸ™Œ @nilan @sorenbs @schickling and everyone else involved! I now finally got around to a project where I could take Prisma and Yoga for a spin!! What a blast! Beautiful work! I'm just so happy working with this setup! šŸŽ‰
    šŸ™ 6
    🦜 2
    prisma cool 2
  • u

    user

    07/19/2018, 7:17 AM
    A file was commented on
  • t

    tomhut

    07/19/2018, 7:48 AM
    Is anybody else getting an error when trying to log into console.graph.cool ?
    d
    • 2
    • 10
  • u

    user

    07/19/2018, 8:14 AM
    A file was commented on
  • a

    agartha

    07/19/2018, 8:45 AM
    @Mohamed Khalil If that can be confirmed, it should be useful to have that added to the documentation.
    m
    • 2
    • 1
  • a

    Alessio

    07/19/2018, 8:50 AM
    hi @nilan is there a particular reason why it is not possible to have both import and script seeding?
    d
    • 2
    • 2
  • v

    Victoria Foster

    07/19/2018, 12:13 PM
    Hi, can anyone remind me how I activate the log on the playground? I don't remember what it's called. It's what it allows to trace all the calls made inside a mutation or query I believe. I saw it once and I can't remember
    j
    • 2
    • 2
  • m

    Marc

    07/19/2018, 12:57 PM
    Hi everyone, first I want to congratulate you for your amazing job on Prisma, it's awesome ! My team and I are trying some stuff, and we're stuck on a new issue : we've been trying to separate our logic and have created multiple endpoints, we had trouble making it work, but it's running smoothly now. But now we woul dlike to know if there is a way to migrate data from a stage to another, or from a service to another ? They're all on the same server. I searched a bit on the net, and only fond an opened issue and no response. Is it possible to do so yet ? thanks in advance, keep up the great work !
  • a

    aroman

    07/19/2018, 1:35 PM
    I might be dealing with the same issue as @Marc, I have different microservices I want to access from my front -end. In order to avoid duplication I’m trying to see if
    schema stitching
    is something that is possible for prisma. Given that we have 2 schemas per repo. Work flow = Front-end -> Graphql Gateway -> different microservices
  • m

    Michaƫl

    07/19/2018, 2:06 PM
    @Marc @aroman Maybe this forum post can help? https://www.prisma.io/forum/t/using-multiple-graphql-servers-with-one-shared-service/3644 I don’t fully understand your problems
  • m

    Marc

    07/19/2018, 2:08 PM
    Hey @Michaƫl, it's the thread I used to make it work. But to avoid data loss, I created another stage, and I want to know if it's possible to get the data from old stage to the new one
  • m

    Marc

    07/19/2018, 2:09 PM
    Let's say you have a stage "dev" with data and you want to migrate all this data to your stage "prod", I'd like to know if there is a simple way to do so in the prisma console for example
  • m

    Marc

    07/19/2018, 2:10 PM
    Sorry if I'm not clear, english is not my native language
  • m

    Michaƫl

    07/19/2018, 2:17 PM
    It would be interesting if Prisma would provide migration files whenever Prisma makes changes to the database. Then you could execute those database migration files to update your ā€œprodā€ database. If you execute ā€œprisma deployā€ in your ā€œprodā€ environment, would this break your ā€œprodā€ database?
    šŸ‘ 1
    s
    a
    j
    • 4
    • 6
  • m

    Marios Antonoudiou

    07/19/2018, 2:39 PM
    Hi guys, I would like to ask a question about playground. I have literally spent about 3 hours trying to figure out how headers are set when using the subscription mode, because I would like to do the same on an app of mine. Does anyone can point me to that? Thanks!
    j
    • 2
    • 3
  • a

    aroman

    07/19/2018, 2:54 PM
    So my problem is more like the following @Michaƫl . I have a gateway that has its own db with prisma in between. I use that gateway to communicate everything from the front end to the microservices. Each microservices has its own
    db
    with
    prisma
    in between. I want to be able to make a query for example from the front end, pass it through the gateway and hit the microservice. The main purpose of this gateway is to gran permissions as the calls go down to the microservice. My current dilemma involves me not being able to properly formate(or tell) my gateway what to send to the microservice
    m
    • 2
    • 14
  • s

    Syrus

    07/19/2018, 5:06 PM
    Hi Hello everyone! šŸ‘‹
    🦜 2
    šŸ‘‹ 1
    gucci 1
  • a

    Alejandro Poggi

    07/19/2018, 5:20 PM
    Hi everyone, does anyone have an example of how to execute the transformResult option on a query in a typescript Prisma implementation?
  • g

    Gabril

    07/19/2018, 6:43 PM
    what apollo server version Graphql-yoga currently using
    j
    • 2
    • 4
  • h

    Haider Malik

    07/20/2018, 5:34 AM
  • h

    Haider Malik

    07/20/2018, 5:36 AM
    https://github.com/HaiderMalik12/hackernews-clone-graphql/tree/challenge-fetch-links I am trying to run
    prisma deploy
    . Prisma stuck on apply changes. Can anyone help me?
    d
    • 2
    • 4
  • a

    atatakobry

    07/20/2018, 12:03 PM
    Hey guys šŸ‘‹ Anybody knows, is it bug or feature? Have some structures as
    Copy code
    type Exercise {
        id: ID! @unique
    }
    type Test {
        id: ID! @unique
        exercises: [Exercise!]!
    }
    Problem In existing
    Test
    I wanna to remove some
    Exercises
    by
    IDs
    (for example, now there are 3
    Exercises
    with
    IDs
    "a", "b", "c"
    (for simplicity)). Few days ago I just sent mutation with
    exercises: { connect: ["a", "b"] }
    and it was working. Now I need to use
    disconnect
    , it's no so conveniently in my app's architecture. ALSO, I can't even remove
    Exercises
    from
    Test
    using Prisma UI, only add šŸ˜ž
    h
    • 2
    • 3
  • j

    Jim

    07/20/2018, 1:28 PM
    Is this normal memory usage? Im still developing my project, it’s not been released so it’s only me hitting the database.
  • u

    user

    07/20/2018, 1:29 PM
    A file was commented on
  • s

    siyfion

    07/20/2018, 1:41 PM
    Is there a way to have a relation which has a unique constraint? ie. a
    Product
    many:many
    Category
    relationship, states that a product can be in many categories, and a category has many products… BUT I want to ensure a product is unique within each category.
    j
    • 2
    • 1
1...868788...637Latest