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

    florian

    11/17/2017, 1:14 AM
    Thanks for that, without going into ACL, I guess having a logoutUser resolver that adds the revoked token to a blacklist then having a permission query for all models that checks the current auth token against this blacklist would work.
  • f

    Fitch

    11/17/2017, 1:16 AM
    Yeah you could have is user token enum id,id,id role role
  • f

    Fitch

    11/17/2017, 1:16 AM
    and then mutate authorizations in and out
  • f

    Fitch

    11/17/2017, 1:16 AM
    even time expire
  • f

    Fitch

    11/17/2017, 1:17 AM
    we have all the ids a user is owner of .. then all the ids a user is admin of .. and then flags for auth roles
  • f

    florian

    11/17/2017, 1:17 AM
    For time expiration I can rely on the token's
    exp
    prop
  • f

    Fitch

    11/17/2017, 1:19 AM
    I use a serverless function in lambda .. to expire my own tokens .. but you could do a prop exp with a library like react timer
  • f

    Fitch

    11/17/2017, 1:20 AM
    Agartha also created a lock library - https://github.com/kbrandwijk/graphcool-mutex
  • f

    Fitch

    11/17/2017, 1:21 AM
    I find I keep rearchitecting over and over to use simple relationships .. and make it logic agnostic as possible
  • f

    Fitch

    11/17/2017, 1:22 AM
    which reduces my calls, and makes secuirty and lookups more functional
  • f

    Fitch

    11/17/2017, 1:22 AM
    mostly because im a complete noob to graph
  • a

    agartha

    11/17/2017, 1:36 AM
    graphcool-mutex
    is for database locks for concurrency support, has nothing to do with tokens
  • f

    florian

    11/17/2017, 1:37 AM
    Yup, it looks very cool too I'm going to use that 🙂
  • a

    agartha

    11/17/2017, 1:37 AM
    The problem with blacklisting auth tokens is that there is no token identification in the Graphcool token (no
    jti
    ), so it's a bit harder to blacklist tokens.
  • f

    florian

    11/17/2017, 1:38 AM
    Yup, I guess checking against the token itself would work
    a
    f
    • 3
    • 20
  • f

    Fitch

    11/17/2017, 1:38 AM
    I use locks to stop paralell errors in a token db
    👍🏻 1
  • f

    Fitch

    11/17/2017, 1:38 AM
    but yeah .. brain threads
  • m

    Miezan

    11/17/2017, 2:49 AM
    hello, I followed this tutorial https://www.howtographql.com/react-apollo/8-subscriptions/ to add subscription to my current project - I receive an ack and some ka but i’m not getting any data - after testing in the playground and looking at the ntwk packet i see that my apollo client sends the connection_init type but not the ‘start’ type. - the query is exactly the same i’m using in the playground - can anyone enlighten me as to what’s happening here?
    i
    • 2
    • 5
  • m

    mwickett

    11/17/2017, 2:49 AM
    I’m getting a log response like this:
    Copy code
    2017-11-17T02:47:25.099Z 2546ms FAILURE {
      "error": "There was a problem parsing the function response. Function name: PublishImmediately"
    }
  • m

    mwickett

    11/17/2017, 2:49 AM
    and I can’t figure out why
  • m

    mwickett

    11/17/2017, 2:52 AM
    Looks like extremely long execution times
  • m

    mwickett

    11/17/2017, 2:53 AM
    invoking the function locally worked fine
  • m

    mwickett

    11/17/2017, 3:00 AM
    It’s a subscription, and the subscription runs fine and fires as expected in the playground
  • m

    mwickett

    11/17/2017, 3:02 AM
    And even worse, it looks like it just worked, (the intended outcome occurred, the post was published), but the log still shows the same error.
  • t

    Tower

    11/17/2017, 4:45 AM
    is it possible to do a type that relate to himself in a recursive way?
    i
    • 2
    • 3
  • i

    iamclaytonray

    11/17/2017, 8:12 AM
    Does anyone know of a workaround for decoupling an app in GC from integrations? Specifically, I can’t disable Algolia. Thanks!
    f
    • 2
    • 2
  • j

    jt9001

    11/17/2017, 9:06 AM
    hey all, quick one for you - it seems like some of my Types have the createdAt and updatedAt fields and some don't. Was this something that changed recently or am I missing something?
    i
    • 2
    • 5
  • p

    pokorson

    11/17/2017, 11:16 AM
    is there any step by step guide how to run local server?
  • c

    Cipri

    11/17/2017, 12:23 PM
    Hello all.. is anyone else experiencing problems with subscriptions? I am mutating an object (result of mutation is what is expected) but subscription is triggered with old data https://www.dropbox.com/s/dnjk5a4gbxhvfzt/Screenshot%202017-11-17%2013.10.05.png?dl=0
    n
    • 2
    • 1
  • m

    mwickett

    11/17/2017, 2:48 PM
    Anyone else still getting 504 errors when deploying?
1...432433434...637Latest