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

    Industrial

    11/27/2018, 10:40 PM
    Hi.
  • i

    Industrial

    11/27/2018, 10:40 PM
    Say I have this data model
  • i

    Industrial

    11/27/2018, 10:40 PM
    Copy code
    type User @model {
        id: ID! @unique
        name: String!
        dashboard: Dashboard @relation(name: "UserDashboard" onDelete: CASCADE)
    }
    
    type Dashboard @model {
        id: ID! @unique
        user: User! @relation(name: "UserDashboard")
        charts: [Chart!]! @relation(name: "DashboardCharts" onDelete: CASCADE)
    }
    h
    • 2
    • 7
  • h

    huv1k

    11/27/2018, 10:41 PM
    please use threads ❤️
  • e

    Eliezer Braun

    11/27/2018, 10:45 PM
    I cant get prisma to generate a schema as part of the post deploy hook
  • e

    Eliezer Braun

    11/27/2018, 10:53 PM
    hooks: post-deploy: - graphql get-schema -p prisma
  • e

    Eliezer Braun

    11/27/2018, 10:53 PM
    what am I doing wrong?
  • r

    rwatts3

    11/27/2018, 11:23 PM
    Question regarding subscriptions. Coming from the Meteor.js days, I'm trying to implement a realtime chat POC When playing with subscriptions in Prisma I noticed that the data only seems to show when something happens rather than giving me all of the data, and sending new data realtime. Is this the expected behavior of subscriptions or am I misusing this functionality. Also if anyone has advice on how to accomplish this using prisma could you please let me know
  • e

    Ermolay

    11/27/2018, 11:39 PM
    I have a GraphQL API gateway and I am thinking about a way to acknowledge mutations locally by using some sort of storage while also submitting the mutation to the message queue for async processing Do you know about any good patterns besides the obvious caching practices that would make the GraphQL-powered edge layer more responsive and reliable?
    👍 1
  • g

    Gorodov Maksim

    11/28/2018, 1:20 AM
    Guys, what tool do you use to visualize your data since you cannot use app.prisma.io for non demo servers? I know about Prisma Admin but it is still in development...
    h
    • 2
    • 4
  • g

    Gorodov Maksim

    11/28/2018, 1:21 AM
    And is there any way to get access to Prisma Admin so I could help in testing it?
  • d

    divyendu

    11/28/2018, 7:04 AM
    I saw a few reports on Prima cloud demo servers in EU being slow yesterday! If you are still facing slowness, please respond to this message as a thread.
    t
    u
    +2
    • 5
    • 18
  • j

    John Smeeth

    11/28/2018, 7:46 AM
    hi all
  • j

    John Smeeth

    11/28/2018, 7:47 AM
    i running this https://github.com/prisma/prisma-examples/tree/master/go/graphql
  • j

    John Smeeth

    11/28/2018, 7:47 AM
    but i got error when run
    createDraft
    mutation
  • j

    John Smeeth

    11/28/2018, 7:47 AM
    error
    err:  graphql: Project not found: 'go-graphql$dev'
    d
    n
    • 3
    • 23
  • j

    John Smeeth

    11/28/2018, 7:50 AM
    anybody please help?
  • e

    elymatos

    11/28/2018, 9:24 AM
    hi all, I'm creating a server like the AirBnb example, but I'm getting lint errors about types (base type vs. 'parent'). As the doc for graphqlgen (https://oss.prisma.io/graphqlgen/) seems not to be updated for this, how is the better form to discuss about that? Thanks
  • e

    elymatos

    11/28/2018, 10:50 AM
    join #graphlgen
    🤔 1
    ✅ 2
  • k

    k0ff33

    11/28/2018, 2:50 PM
    Is there a way to create or connect a relationship in a single mutation? Example: with a
    type Product { name: String!, category: [ProductCategory!]! }
    and
    type ProductCategory { name: String! @unique }
    I’d like to do
    mutation { createProduct( data: { name: "New product", category: { createOrConnect: { name: "Category A" } } }) }
    and make sure the same mutation works when creating “New Product 2” without checking if “Category A” exists. I’ve tried defining both create and connect but that doesn’t work. Thanks!
    n
    c
    • 3
    • 7
  • w

    wontwon

    11/28/2018, 3:31 PM
    How are you going about seeding data currently?
  • r

    rajit

    11/28/2018, 6:10 PM
    Is anyone using subscriptions with Prisma and the latest
    prisma-client-lib
    ? It doesn’t seem possible to fetch the full
    { mutation, previousValues, node, updatedFields }
    payload at once. You can either subscribe to
    node
    ,
    previousValues
    or
    { mutation, updatedFields }
    . (issue reported here: https://www.prisma.io/forum/t/prisma-client-1-19-and-subscription-big-problem/4775/5)
  • r

    rajit

    11/28/2018, 6:13 PM
    Even the Prisma examples subtly guide you to only use this limited functionality: https://github.com/prisma/prisma-examples/blob/49f59ef0da0b201b95c8d29f5de953495ed12708/node/graphql-subscriptions/src/index.js#L51
  • r

    rajit

    11/28/2018, 6:14 PM
    @nikolasburk I’ve seen some tutorials from you covering subscriptions using older projects, are you working on anything that covers the latest Prisma methods?
  • r

    rajit

    11/28/2018, 6:28 PM
    I can see that the Prisma backend returns the full payload just fine so it’s just an issue with
    prisma-client-lib
  • n

    Naka

    11/28/2018, 8:45 PM
    Does anyone knows how to make
    where
    search fields case-insensitive on Prisma? I migrated my current data from graphcool and it used to handle case sensitive on filter fields...
  • i

    impowski

    11/28/2018, 8:55 PM
    Hey, can anyone tell me is there a way to refresh token given by
    prisma token
    ?
  • i

    impowski

    11/28/2018, 9:06 PM
    I know for the fact that I can get it with running the command again, but I’ll will have another service connected to it
    e
    • 2
    • 2
  • r

    rwatts3

    11/28/2018, 9:24 PM
    Question regarding subscriptions. Coming from the Meteor.js days, I'm trying to implement a realtime chat POC When playing with subscriptions in Prisma I noticed that the data only seems to show when something happens rather than giving me all of the data, and sending new data realtime. Is this the expected behavior of subscriptions or am I misusing this functionality. Also if anyone has advice on how to accomplish this using prisma could you please let me know
    n
    • 2
    • 7
  • s

    spences10

    11/29/2018, 11:46 AM
    Hi there, I have gone through setting up a local instance of a MySQL database with Docker which I'd like to now move to a server so I can start hitting it from a frontend, I'm guessing now I need to use graphql yoga to define the schema?? This is going to be a really simple back-end with four fields I need to send mutations to and query, is there a lot of config involved after this part? I was using Gatsby with Apollo for front-end and GraphCMS for the data but have found that I can't send mutations to GraphCMS so am now looking into other options... Is this the right approach or should I be looking at something simpler?
1...167168169...637Latest