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

    Futuristic Ferret

    08/07/2018, 5:56 PM
    Hey all; I just inherited some code that uses https://github.com/prismagraphql/graphql-request and noticed it's sending the query (mutation) as parsed JSON, which I think may be causing an issue when our backend interprets it. https://github.com/apollographql/apollo-client sends the query as a large string. Is there any difference, or any way to have
    graphql-request
    not parse the query?
    • 1
    • 1
  • c

    chandlervdw

    08/07/2018, 6:12 PM
    Is there a way to export Graph.cool schema to use in prisma (as a
    datamodel.graphql
    ?
    h
    • 2
    • 4
  • m

    Moritz

    08/07/2018, 10:46 PM
    Hi all, is anyone aware of an ongoing development for a prisma data provider for the
    react-admin
    project? There is one for the old graphcool formats, but I couldnt find one for prisma. https://github.com/marmelab/react-admin/tree/master/packages/ra-data-graphcool https://marmelab.com/react-admin/DataProviders.html
    n
    • 2
    • 1
  • t

    Timur M

    08/08/2018, 4:11 AM
    Can anyone recommend a way on how to setup a subscription on a group, when a new message is being created?
    Creating_a_subscription_on_Group.js
  • t

    Timur M

    08/08/2018, 4:13 AM
    I created a mutation that adds a user to group, which call 'updateGroup' and that does trigger the subscription
    Copy code
    const addUserToGroup = (root, { groupId, userId }, ctx, info) =>
      ctx.db.mutation.updateGroup(
        {
          where: { id: groupId },
          data: {
            users: { connect: { id: userId } }
          }
        },
        info
      );
  • t

    Timur M

    08/08/2018, 4:15 AM
    I'm wondering maybe my mistake is when I'm creating a message, the group subscription doesn't actually get updated or triggered?
    n
    • 2
    • 1
  • z

    zak.singh

    08/08/2018, 8:40 AM
    If I were to horizontally scale both my graphql-yoga server and prisma server (they're both on fargate), would I lose subscription functionality?
    n
    m
    • 3
    • 3
  • p

    playra

    08/08/2018, 9:07 AM
    https://www.prisma.io/forum/t/composite-index/4133
  • s

    simons

    08/08/2018, 9:23 AM
    Hi, I am deploying prisma server to AWS Fargate. Anyone knows how to upgrade to a newer prisma version? Currently it runs on the 12.0 version
    n
    • 2
    • 1
  • c

    Chughtai

    08/08/2018, 10:17 AM
    Any idea when MongoDB support kicks in?
  • h

    halborg

    08/08/2018, 1:02 PM
    Hey all šŸ™‚ I’m trying to get my Prisma server up, but I’m having some trouble. The DB is AWS Aurora, and I’m hosting the server on Zeit Now. I’ve been using the new guide for deploying to Zeit Now (https://www.prisma.io/docs/tutorials/deploy-prisma-servers/zeit-now-and-google-cloud-sql-mohj5eiwot#1.-mysql), but even though the deploy is succesful, it can’t reach my DB for some reason. I get an output like this:
    Copy code
    > Successfully built 086ddb645f20
    > Successfully tagged registry.now.systems/now/8c565a120ef9e162cfb024f678f1e2411044ae28:latest
    > ā–² Storing image
    > Build completed
    > Verifying instantiation in bru1
    > [0]   at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:548)
    > [0] Exception in thread "main" java.sql.SQLTransientConnectionException: database - Connection is not available, request timed out after 5000ms.
    > [0]   at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:83)
    > [0]   at slick.jdbc.hikaricp.HikariCPJdbcDataSource.createConnection(HikariCPJdbcDataSource.scala:14)
    > [0]   at slick.jdbc.JdbcBackend$BaseSession.<init>(JdbcBackend.scala:453)
    > [0]   at slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:46)
    > [0]   at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:145)
    > [0] Exception in thread "main" java.sql.SQLTransientConnectionException: database - Connection is not available, request timed out after 5001ms.
    I triple-checked the credentials and host, and I’m able to connect to the DB just fine using MySQL Workbench with the same credentials, which to me indicates that the credentials and host URL/port is fine, and that the DB accepts outside connections just fine as well. Any ideas / help would be much appreciated. šŸ˜„
    šŸ‘ 1
    g
    m
    • 3
    • 24
  • m

    Moritz

    08/08/2018, 2:04 PM
    Hi all, im getting a few unpredictable errors like these:
    Error: GraphQL error: Whoops. Looks like an internal server error. Search your server logs for request ID: eu1:api:cjkl7eujw8jkk0d76xtm3firf
    , is there a way to read the prisma public cloud logs?
    n
    • 2
    • 5
  • j

    Jerry JƤppinen

    08/08/2018, 2:22 PM
    I have an existing project and would like to duplicate my demo data to a new service in order to test some schema changes without having to deploy them to my only service. Is there a simple way to duplicate an existing Prisma dev service, or do I need to manyally
    prisma init
    a new service? Is there a way to carry over the data that I have in an existing service? Or is there some completely different workflow I should actually be looking at
    n
    • 2
    • 9
  • m

    mwickett

    08/08/2018, 2:53 PM
    Is the graphcool console down? I'm unable to login, getting "Internal Server Error"
    n
    • 2
    • 6
  • m

    mwickett

    08/08/2018, 2:53 PM
  • j

    Joey

    08/08/2018, 3:02 PM
    Hello, unfortunately the registration in the forum does not work at the moment, therefore I write my question here (hope that's okay). I would like to automatically create the GraphQL schema for an existing database with existing data. I already did a lot of research and found that this should be possible with PostgreSQL. I tried that, but unfortunately I only get the tables generated as a schema and nothing else. The generated GraphQL schema then consists only of the table names and their attributes, but there are no operations and so on. I found a generated schema on Github: https://gist.github.com/sorenbs/0861e1f404981012f160b940b6cf41ea/ That's exactly the kind of schema I would like to have generated (based on my database, of course) Can someone please tell me if and how this is possible with Prisma? Many thanks in advance!
    m
    • 2
    • 4
  • d

    Drew Delianides

    08/08/2018, 3:22 PM
    Hey! does prisma cloud have an IP range that I could allow for my firewall?
    m
    • 2
    • 2
  • r

    roderik

    08/08/2018, 4:52 PM
    hi I am using prisma-bindings, and is there a way to use schema-stiching to only expose certain mutations of a prisma server?
  • r

    roderik

    08/08/2018, 4:55 PM
    or should I use Remote schemas on top of the prisma-bindings library?
  • r

    roderik

    08/08/2018, 4:58 PM
    also i would very much like not to expose the entire prisma mutations
    h
    • 2
    • 1
  • k

    Kristof

    08/08/2018, 5:58 PM
    Hey guys, I'm trying to set up a new server on heroku but I keep getting the following error
  • k

    Kristof

    08/08/2018, 5:58 PM
    is there something wrong with Prisma atm?
  • k

    Kristof

    08/08/2018, 6:22 PM
    this is where I get stuck
    šŸ‘ 1
  • k

    Kristof

    08/08/2018, 6:22 PM
    I hope this is the right place for this btw, if not, please let me know where I should report this
    n
    • 2
    • 9
  • d

    Drew Delianides

    08/08/2018, 10:54 PM
    i'm having a strange cloud issue. If I use
    updateMany...
    i get a count returned but the prisma dashboard doesn't show any new nodes created/updated. If I toggle between different tables I can see flashes of the data in the table before it disappears and shows me the `No ... nodes yet" screen. Querying for the data doesn't return anything either.
  • d

    Drew Delianides

    08/08/2018, 10:54 PM
    can I use updateMany with relations? ie
    Copy code
    mutation {
      updateManyWidgets(
        data: {
          history: { create: [{ when: "2018-08-08", status: PENDING }] }
        }
      ) {
        count
      }
    }
    n
    • 2
    • 1
  • v

    val

    08/09/2018, 7:49 AM
    Is the upgrade cluster functionality disabled?
  • n

    nilan

    08/09/2018, 8:19 AM
    No, it's not disabled @val.
    • 1
    • 2
  • j

    Joey

    08/09/2018, 10:24 AM
    Could someone please tell me where I can find the code from prisma, which auto generates the graphql schema from a database?
    n
    • 2
    • 10
  • h

    halborg

    08/09/2018, 11:20 AM
    Is there something wrong with the console at the moment? I can’t see any of my servers or services, but they are listed just fine using the CLI. I also checked that I’m on the correct account
    n
    • 2
    • 8
1...959697...637Latest