https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • d

    daniele

    11/19/2017, 5:49 PM
    In general people help about questions code related ... if is not the case for what is the channel
    n
    • 2
    • 3
  • d

    daniele

    11/19/2017, 6:58 PM
    Sameone could help me on the permission stuff please? related questions on the forum as well:https://www.graph.cool/forum/t/permissions-authenticated-by-email-password/1660
  • d

    daniele

    11/19/2017, 8:04 PM
    ok I finished my ideas
  • d

    daniele

    11/19/2017, 8:05 PM
    @nilan did you have a look on the post?
  • d

    Dukuo

    11/19/2017, 8:12 PM
    hey everyone!
  • d

    Dukuo

    11/19/2017, 8:13 PM
    i'm having issues with permissions using Graphcool's Playground
  • d

    Dukuo

    11/19/2017, 8:13 PM
    I can't run SomeXXXExists or any permissions query
  • d

    Dukuo

    11/19/2017, 8:13 PM
    i'm using a permission tab and all, and tried in Chrome, Firefox AND Internet Explorer (which I wouldn't do if I were so desperate about it)
  • t

    timwis

    11/19/2017, 8:14 PM
    Hey folks, I’ve only ever dove into PostgREST, PostGraphQL, and GraphCool, and never actually built a GraphQL api from scratch. I’m having a hard time imagining how authorisation works, paticularly since it seems like you’d have to run your authorisation logic for every field requested. Having a hard time imagining a real-life example. Does anyone know of a good once (ideally in node but I can probably parse another language) that I can peek at?
  • d

    Dukuo

    11/19/2017, 8:14 PM
    @timwis you can run a permission query in a model and relationship level
  • d

    Dukuo

    11/19/2017, 8:15 PM
    so you could just run the permissions to all fields by not listing them in the
    permission
    section of your
    graphcool.yml
    file
  • d

    Dukuo

    11/19/2017, 8:15 PM
    https://www.graph.cool/docs/tutorials/auth/authorization-for-a-cms-miesho4goo#user-roles-for-broad-authorization-rules 👈
  • d

    Dukuo

    11/19/2017, 8:15 PM
    @nilan any idea with my issue ?
  • d

    daniele

    11/19/2017, 8:18 PM
    well I start to think that is a bug in the system
  • d

    daniele

    11/19/2017, 8:18 PM
    https://github.com/graphcool/framework/tree/master/examples/permissions
  • d

    daniele

    11/19/2017, 8:18 PM
    I got the same problem here when I try o use on local
  • d

    Dukuo

    11/19/2017, 8:19 PM
    it's strange tho, because solutions like upgrading the code won't work here since i'm using their hosted version
  • d

    Dukuo

    11/19/2017, 8:25 PM
    and also, can't create permissions from the permissions tab (everything is greyed out) @nilan
  • d

    daniele

    11/19/2017, 8:26 PM
    are you using the local or the console hosted?
  • d

    daniele

    11/19/2017, 8:26 PM
    @Dukuo
  • d

    Dukuo

    11/19/2017, 8:27 PM
    console hosted @daniele
  • d

    daniele

    11/19/2017, 8:27 PM
    yeah...I'm using the local...and whetever is related to permission doesn't work
  • d

    daniele

    11/19/2017, 8:28 PM
    wethever query that require permission return:
    Insufficient Permissions
  • d

    Dukuo

    11/19/2017, 8:30 PM
    odd
  • d

    Dukuo

    11/19/2017, 8:30 PM
    I just created a forum post with my issue over here https://www.graph.cool/forum/t/cant-test-permission-queries-nor-create-them-on-the-console/1661
  • d

    Dukuo

    11/19/2017, 8:30 PM
    let's hope someone picks it up
  • d

    daniele

    11/19/2017, 8:31 PM
    @Dukuo https://www.graph.cool/forum/t/permissions-authenticated-by-email-password/1660
  • d

    Dukuo

    11/19/2017, 8:32 PM
    @daniele have you tried deploying to the console version ?
  • d

    daniele

    11/19/2017, 8:32 PM
    I'll try now
  • d

    daniele

    11/19/2017, 8:33 PM
    but the example that they provided has the same problem
1...435436437...637Latest