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

    sorenbs

    01/27/2017, 12:46 AM
    The api is stateless. All you need to do is delete the token locally. See also https://auth0.com/docs/logout we don't currently have a way to revoke a token but might add that in the future
  • t

    thisismissem

    01/27/2017, 1:57 AM
    @sorenbs: hm, so there's no way to force invalidation of a token?
  • t

    thisismissem

    01/27/2017, 2:00 AM
    (For non-auth0)
  • t

    thisismissem

    01/27/2017, 2:01 AM
    I'm thinking something like the user can see all active sessions & potentially revoke a session
  • s

    sorenbs

    01/27/2017, 8:36 AM
    @thisismissem: not at the moment. We'll ad this in the future
  • t

    thisismissem

    01/27/2017, 9:42 AM
    @sorenbs this is something I'm currently having to implement for my company
  • t

    thisismissem

    01/27/2017, 9:43 AM
    So far I've just gone with a GenericResponse type, which simply has:
    { success: Boolean! }
  • t

    thisismissem

    01/27/2017, 9:43 AM
    As logout doesn't have any other information to communicate, other that success or failure
  • t

    thisismissem

    01/27/2017, 9:44 AM
    (I could also go with
    type MaybeError { error: String }
  • t

    thisismissem

    01/27/2017, 9:44 AM
    but idk how this all fits in graphql right now
  • t

    thisismissem

    01/27/2017, 9:45 AM
    @sorenbs do you publish the base schema for graph.cool? (I feel like there's so many people using graphql in production, but so few actually publish their schemas
  • s

    sorenbs

    01/27/2017, 9:49 AM
    Interesting. Wouldn’t the introspection query give you all you want to know about the schema? We have 3 schemas - system (for managing your projects) + simple and relay for interacting with your data.
  • t

    thisismissem

    01/27/2017, 9:52 AM
    not sure
  • t

    thisismissem

    01/27/2017, 9:52 AM
    Like, Github's is pretty brilliant: https://developer.github.com/early-access/graphql/
  • b

    brad.barnes

    01/27/2017, 9:57 AM
    Given the built in File model in Graphcool should I still use a CDN like Uploadcare? I can think of a few advantages like the fact that the widget will cut out a good deal of coding.
  • s

    schickling

    01/27/2017, 10:01 AM
    Hi @brad.barnes! Yes, we’re using Cloudfront as a CDN with edge nodes all around the globe.
  • n

    nikoloza

    01/27/2017, 11:51 AM
    hello guys
  • b

    brad.barnes

    01/27/2017, 11:52 AM
    I'm having trouble finding documentation on appending to a list field could anybody point me in the right direction? I am afraid the normal updateModel(.. will overwrite the array, Is this the case?
  • s

    schickling

    01/27/2017, 12:24 PM
    Hey @brad.barnes, yes array type values are always replaced as a whole. If you want to append/remove to a list, you should try to use a relation instead 🙂
  • s

    sorenbs

    01/27/2017, 12:54 PM
    Welcome @nikoloza and @aparedes 😄
  • m

    miguel

    01/27/2017, 5:50 PM
    @thisismissem, just like @sorenbs mentioned, you can do an introspection query and get the entire schema (it’s how GraphiQL does it)
  • s

    sorenbs

    01/27/2017, 5:51 PM
    Hey @xpepermint - welcome!
  • x

    xpepermint

    01/27/2017, 5:56 PM
    hey, hey 🙂
  • s

    sorenbs

    01/27/2017, 5:59 PM
    I understand you spoke with Nilan about contributing to the Vue track for Learn Apollo. I think that would be really really cool! A lot of people are excited about Vue and GraphQL together and Vue is kind of a blind spot for me 🙂
    ❤️ 1
  • x

    xpepermint

    01/27/2017, 7:49 PM
    hehe… sure, I’ll do my best 🙂 - I’ll take some time for this next week ...
    🦜 1
  • c

    cullan

    01/27/2017, 10:06 PM
    I am working on query permissions today. I am planning to make a page where admin users can create other user accounts manually instead of allowing open sign up. I made a create node permission for the User model (authenticated) with this rule.
    Copy code
    {
      user(id:$userId) {
        roles(filter: {name: "admin"}) {
          id
        }
      }
    }
    When I log in as a user with the admin role, I cannot create a user. I get the message "It is not possible to create a user when you are already signed in." Is it possible to work around this?
  • n

    nilan

    01/27/2017, 10:17 PM
    we haven't considered this scenario, do you mind creating an issue here http://github.com/graphcool/console/issues?
  • n

    nilan

    01/27/2017, 10:17 PM
    @cullan
  • c

    cullan

    01/27/2017, 10:21 PM
    Sure. Here you go. https://github.com/graphcool/console/issues/578
  • n

    nilan

    01/27/2017, 10:45 PM
    thanks!
1...899091...637Latest