https://www.prisma.io/ logo
Join Slack
Powered by
# random
  • b

    BacharSaleh

    12/23/2018, 3:59 PM
    I FIXED YESSSS parrotwave3... we have to delete the Prisma Collection in addition to the Project Collections because the migrations in Prisma Collection I think it's getting crazy some how
  • l

    Luis Acerv

    12/23/2018, 4:01 PM
    great!
  • n

    Nick

    12/25/2018, 9:14 PM
    Anyone here had experience using facebook relay instead of apollo. In the past I have only worked with apollo. I just recently picked up gatsby.js the data fetching is so fast basically it runs graphql in build time. Its crazy fast literally no loading state at all, that was always something that bothered me using apollo. It took so long for the data to appear on screen whereas with gatsby.js the view-layer and the data-layer is one-to-one kinda reminds me of the old mvc pattern. Important if going to build any data driven application. I wonder if graphql-relay can offer same speed and performance?
    l
    s
    • 3
    • 2
  • n

    Nick

    01/03/2019, 10:02 PM
    Personal question I think something like prisma would be great if sat on top rails/django/laravel version of JavaScript. Creators of prisma will you guys ever make a full fledge web framework of prisma or collaborate with existing one?
    c
    j
    • 3
    • 3
  • b

    b4dnewz

    01/06/2019, 6:26 PM
    hello to everybody, doesn anyone know if is possible with
    prisma generate
    and the typescript-client generator to generate a prisma-schema.graphql file along to the prisma-schema.ts file?
    h
    • 2
    • 3
  • b

    b4dnewz

    01/06/2019, 6:29 PM
    it can be extremely useful to
    #import
    pieces of the schema definition into custom schema using graphql-import, right now (i'm looking at the official example) the custom schema is simply replicated https://github.com/prisma/prisma-examples/blob/master/typescript/graphql/src/schema.graphql while it should be imported from the generated one for a better maintenability instead of manually keeping "in sync" thanks in advance
  • s

    Seppe Snoeck

    01/10/2019, 8:27 PM
    are there any good prisma x facebook auth instuctions?
  • l

    Lucas

    01/15/2019, 3:06 AM
    There is nothing to do with prisma and facebook, I mean one is a database or a client to access database and facebook provides an auth tool.
  • c

    chan1di

    01/17/2019, 12:52 PM
    Hi, I am using prisma-binding library const userExists = ctx.prisma.exists.User({email: "awsd@gmail.com"}) i used this exist query but it keep giving me this "Promise { <pending> }" Can anyone tell me what am i doing wrong?
    h
    • 2
    • 4
  • p

    papabarbas

    01/18/2019, 1:36 AM
    Hi. Can't deploy prisma to dokku. I followed the tutorial at https://www.prisma.io/tutorials/deploy-prisma-to-dokku-ct15, but the deploy crashes. Why? How can i get this to work? This is the output.
    Cant_deploy_prisma_to_Dokku.txt
    o
    • 2
    • 1
  • d

    Dan Fein

    01/18/2019, 1:40 AM
    Hi there - if I am setting up two tables that reference each other, e.g. this:
  • d

    Dan Fein

    01/18/2019, 1:40 AM
    Copy code
    type Repo {
      id: ID! @unique
      repo_id: Int! @unique
      name: String!
      license: String
      contributors: Int
      user: GitHub @relation(name: "GitHubLink")
    }
    
    type GitHub {
      id: ID! @unique
      handle: String
      stars: Int
      repo: [Repo] @relation(name: "GitHubLink")
      contributions: Int
      profile_picture: String
      active: Int!
    }
  • d

    Dan Fein

    01/18/2019, 1:41 AM
    How do I make it such that I know what field Github is referencing within Repo, and which Repo is referencing within Github. In other words, what am I actually creating that makes the “link” itself. Is it the ID of the user that is stored / fetched in the Repo object?
    m
    a
    • 3
    • 5
  • d

    Dan Fein

    01/18/2019, 1:57 AM
    nevermind the amazing Connect method is perfect
  • k

    kitze

    01/18/2019, 12:49 PM
    don't know if this is the right place to ask
  • k

    kitze

    01/18/2019, 12:49 PM
    but I'm using graphql-shield and
    parent
    is always undefined
  • k

    kitze

    01/18/2019, 12:49 PM
    https://github.com/maticzav/graphql-shield/issues/118
    d
    • 2
    • 1
  • k

    kitze

    01/18/2019, 12:49 PM
    there's an issue, but no solution
  • a

    Anthony

    01/18/2019, 4:28 PM
    Should I be replacing prisma-bindings with prisma client?
  • c

    chan1di

    01/20/2019, 8:54 PM
    did anyone use this package with prisma "https://www.npmjs.com/package/@alanning/roles" to assign roles and groups to user? If yes then can you guys tell how you did it because im having some problem with it. OR if there is any other solution to assign roles to user can you tell me how to do that?
  • p

    Prakhar

    01/22/2019, 7:45 AM
    could you help why res.json doesn't work for returned response -
    request('/graphql', query, variables).then(res => res.json());
    ?
  • p

    Prakhar

    01/22/2019, 7:47 AM
    and what's the return type of response - when I tried to fetch property using
    res.level1data
    , it didn't work either
  • p

    Prakhar

    01/22/2019, 7:47 AM
    I'm using typescript
  • p

    Prakhar

    01/22/2019, 8:01 AM
  • p

    Prakhar

    01/22/2019, 8:03 AM
    In continuation to my post ^^^, I was seeing docs (https://www.prisma.io/docs/prisma-client/features/graphql-requests-JAVASCRIPT-pyl3/) seems like data node is present - so I tried it but it didn't work this way. See the hover in yellow background in snapshot ^^, what's that
    type: {}
    ?
  • p

    Prakhar

    01/22/2019, 9:41 AM
    I've resolved it for now with some thing like below
  • p

    Prakhar

    01/22/2019, 9:41 AM
    -.txt
    m
    • 2
    • 1
  • p

    Prakhar

    01/22/2019, 9:41 AM
    tell me if there's better way
  • l

    LemonAndroid

    01/25/2019, 11:01 AM
    Hey
    👋 11
  • m

    Mughees

    01/27/2019, 5:59 PM
    enum Permission{ ADMIN USER CLASSREATE CLASSUPDATE CLASSDELETE MEMBERADD MEMBERDELETE } type User { id: ID! @unique name: String! email: String! @unique password: String! image: String largeImage: String resetToken: String resetTokenExpiry: Float permissions: [Permission] classes: [Class!]! @relation(name:"MyClasses" onDelete: CASCADE) # classMembers: [Class!]! } type Class { id: ID! @unique title: String! description: String! user: User! @relation(name:"MyClasses") # members: [User!]! } This is my current schema how can i make a relationship between members in class with user
1...272829...53Latest