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

    nilan

    04/10/2018, 5:01 PM
    has renamed the channel from "announcements" to "accouncementss"
  • n

    nilan

    04/10/2018, 5:01 PM
    has renamed the channel from "accouncementss" to "general"
  • n

    nilan

    04/10/2018, 5:02 PM
    set the channel topic: General Discussions - Community Guidelines: https://gist.github.com/marktani/13a6ac8ac9b87b821fa753480de5b529
  • b

    bttf

    04/10/2018, 6:13 PM
    👋
  • g

    Georgios Psarakis

    04/10/2018, 6:13 PM
    we have arrived! fast parrot
    😄 3
  • m

    Marian Paul

    04/10/2018, 6:38 PM
    Hey guys. I'm using Yoga + prisma, and it's time to write some tests. Do you have any document / sample / anything to redirect me to get started properly (seeding a database, mocking data, ...) ? Thanks!
    j
    n
    • 3
    • 4
  • k

    kevin

    04/10/2018, 6:44 PM
    ha, very sorry. I just realized I was in the wrong channel. Not sure why, must have auto-joined announcements. Here is a message I had posted a bit earlier:
    Hey all! Quick question: I opend a PR a few days ago with some very minor tweaks for the
    serverless-plugin-typescript
    plugin to basically filter out functions without handlers defined (specifically for the
    openwhisk
    provider): https://github.com/graphcool/serverless-plugin-typescript/pull/94/files It's pretty small, but I'm wondering if this is something I need to follow up on, etc. Sorry if this message is totally out of place / annoying / etc! edit: https://github.com/graphcool/serverless-plugin-typescript/issues/93 has a bit more history / reasoning / etc in it. (edited)
    n
    • 2
    • 2
  • p

    pasa

    04/10/2018, 8:42 PM
    @nilan @harmony Here are the relevant contents of my data model concerning our threat https://graphcool.slack.com/archives/C0MQJ62NL/p1523226450000010 :
    n
    h
    • 3
    • 11
  • m

    medelman

    04/10/2018, 10:00 PM
    Hi. Is there an easy way with prisma-bindings to update connections without having to loop & filter in my resolver? For instance, I have a Post type that has a Pictures relation. In updating Post, users may want to add and/or remove connected Pictures. I understand that I could make some calls to the server, do some good ole loopin' and reducin', but figured maybe there was a ready-to-cook version?
    n
    • 2
    • 5
  • m

    Mike

    04/10/2018, 11:25 PM
    Hey noticed that this forum post: https://www.graph.cool/forum/t/introducing-graphql-playground/1070 suggested graphql playground had a vim mode, wondering how to enable it I’ve been poking around the code, and trying different settings, I imagine i just have to get the keymap set here https://github.com/graphcool/graphql-playground/blob/b3b8a57cfaf3151c05ba8b1e3ad9f4e28d80c4c7/packages/graphql-playground-react/src/components/Playground/QueryEditor.tsx#L102 but
    "editor.keyMap":"vim"
    didn’t seem to have any effect (in settings)
    n
    • 2
    • 1
  • d

    dreadjr

    04/11/2018, 7:03 AM
    I was wondering if someone could help with seeding this schema. Or if i am doing it completely wrong please tell me.
    Copy code
    type Tenant {
      id: ID! @unique
    }
    
    type User {
      id: ID! @unique
    
      owns: [Project!] @relation(name: "EquipmentToOwners")
      rents: [Project!] @relation(name: "EquipmentToRenters")
    
      tenants: [Tenant!]!
    }
    
    type Equipment {
      id ID! @unique
    
      owners: [User!] @relation(name: "EquipmentToOwners")
      renters: [User!] @relation(name: "EquipmentToRenters")
    
      tenant: Tenant!
    }
    n
    d
    • 3
    • 4
  • d

    dreadjr

    04/11/2018, 7:43 AM
    When deploying a service is there a way to look at the resulting dB schema? Is the data browser the exact schema? Doesn’t seem to show bridge tables
    n
    • 2
    • 4
  • m

    mezie

    04/11/2018, 10:03 AM
    How do I define a kind of many to many relationship in Prisma
    h
    • 2
    • 2
  • m

    mezie

    04/11/2018, 10:04 AM
    Say I have two types:
    User
    and
    Event
    w
    • 2
    • 19
  • m

    mezie

    04/11/2018, 10:05 AM
    I want to be able to get all user that will be attending an event. So I created another type
    Attendee
  • m

    mezie

    04/11/2018, 10:06 AM
    Now I'm stuck at how to relate the
    Attendee
    with the
    User
    and
    Event
    types
  • m

    mezie

    04/11/2018, 10:07 AM
    So far I only have
    eventId
    and
    userId
    fields on the
    Attendee
    type
  • m

    miho

    04/11/2018, 11:15 AM
    fast parrot
    fast parrot 10
    🦜 4
    parrotwave6 2
  • l

    lawjolla

    04/11/2018, 2:26 PM
    I’m ready for that announcement channel. Lay it on us today! 😂
    🦜 2
    parrotwave6 1
  • z

    zebapy

    04/11/2018, 3:16 PM
    anyone created notification systems on top of their graphql api? How do you implement it? Do you fire a
    createNotification
    type of function in your resolvers or use some sort of middleware?
    n
    l
    m
    • 4
    • 12
  • e

    eliezedeck

    04/11/2018, 4:46 PM
    Hi, been a while since I have been playing with GraphQL. I ended-up doing my last project still in Meteor. Now, I'm about to start another project and I would really want to have it in GraphQL. A lot of things seem to have happened since I last was here. @nilan could you point me a link to understand the difference between Graphcool, Graphcool Framework, Prisma? I'm quite confused right now. I have heard about Graphcool Framework last time I was here, but I understood that there was no File feature support back then, and that I didn't really understand if it was just for a dev tinkering thing or ready for production. Appreciate your clarifications.
    n
    a
    • 3
    • 3
  • a

    anthony

    04/11/2018, 5:53 PM
    Does anyone have like a hello work app for prisma? I'm a little confused about where how I define my resolvers? I've built graphql back-ends... so this is more about how I go about using prisma. For instance, say I have an apollo server back-end-- how would I transfer that to prisma? Or say I have a current app with a REST API backed back azure SQL-- how/where do I define resolvers that CRUD my asure SQL so I can throw out the REST API?
  • y

    Yarden Hochman

    04/11/2018, 9:19 PM
    I'm trying to save the user information into graphcool from auth0. Getting "The provided idToken is invalid". This is despite login/logout working with auth0
  • s

    Sim

    04/11/2018, 10:00 PM
    Hi , how do i logout a user ? i am using graphql - yoga fullstack boiler plate & prisma on local cluster , i can register , login. but i can't logout how to implement logout can any one help me ? any keyword or any example ? so i can google myself or any hints ? thanks
    j
    • 2
    • 19
  • l

    lawjolla

    04/11/2018, 10:08 PM
    I just started getting internal cluster errors for US1 mutations. Anyone else?
    s
    n
    • 3
    • 20
  • p

    pasa

    04/12/2018, 12:53 AM
    Hey everybody, could someone tell me the address of the mysql db (to be accessed trough a client), when prisma is hosted on the eu public cluster?
    n
    • 2
    • 2
  • r

    ronanyeah

    04/12/2018, 2:30 AM
    https://graphcool.slack.com/archives/C0MQJ62NL/p1523376005000832?thread_ts=1523375146.000350&cid=C0MQJ62NL @nilan is it recommended to use graphcool right now, or wait until prisma is integrated?
    n
    • 2
    • 8
  • g

    Glen

    04/12/2018, 4:17 AM
    Hi Graphcool, I would love to participate in the PostgreSQL Connector preview!
    n
    a
    • 3
    • 4
  • f

    fabien0102

    04/12/2018, 11:25 AM
    Hello everybody, Just to ask if anybody have already tried to do some graphql-binding with auth (I don't even know if it's possible for now). My goal is to provide a clean way to request my graphql api on another backend, and, because otherwise is too easy, I need to provide auth token on queries/mutations and subscriptions! Thanks for your feedback on this 🙂
    w
    s
    +2
    • 5
    • 39
  • m

    mohib

    04/12/2018, 1:25 PM
    Does anyone else also has the problem using
    Prettify
    button in the latest graphql-playground 1.5.2?
    h
    • 2
    • 6
12345...637Latest