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

    yus

    06/01/2017, 12:28 PM
    perhaps someone from graphcool can advise
  • y

    yus

    06/01/2017, 12:28 PM
    perhaps there's a better way
  • n

    nilan

    06/01/2017, 12:28 PM
    @picosam functions as part of the Request Pipeline are "synchrous" in that sense. Functions as part of a server-side subscription are "asynchrounous" in that sense.
  • n

    nilan

    06/01/2017, 12:29 PM
    That means, functions in the RP block/delay the mutation from the client perspective
  • n

    nilan

    06/01/2017, 12:30 PM
    if your RP function runs 100ms, your client will receive the mutation response 100ms later your SSS function has no impact on the mutation response time
  • p

    picosam

    06/01/2017, 12:30 PM
    Very clear, thanks ๐Ÿ‘
    ๐Ÿ‘ 1
  • y

    yus

    06/01/2017, 12:31 PM
    thanks @nilan
  • y

    yus

    06/01/2017, 12:39 PM
    sss rocks
    ๐Ÿ’ฏ 1
    ๐Ÿ˜‚ 1
  • y

    yus

    06/01/2017, 12:40 PM
    were you guys at react-europe?
  • y

    yus

    06/01/2017, 12:40 PM
    it would have been a blast to have graphcool there
  • n

    nilan

    06/01/2017, 12:41 PM
    sadly, we were busy doing the last preparations for GraphQL Europe ๐Ÿ˜ฑ
    ๐Ÿ˜ž 1
  • m

    martin

    06/01/2017, 12:54 PM
    Sorry @nilan, have been not keeping track of latest developments much. Can you use graphcoolโ€˜s latest server-side functions as replacement for, say, external server & mutation callbacks (like Iโ€™ve written about here: https://medium.com/consciousapps/integrating-stripe-with-react-graphql-and-apollo-client-e09fdc9e5b95)?
    n
    • 2
    • 5
  • e

    eliezedeck

    06/01/2017, 1:15 PM
    hey @nilan, @schickling has invited me here ... I'll let you guys know when I find something that's off on the website and anywhere
    โค๏ธ 1
    n
    • 2
    • 3
  • y

    yus

    06/01/2017, 3:04 PM
    @nilan it seems there's some strange things going on with the inline functions editor
    n
    • 2
    • 1
  • y

    yus

    06/01/2017, 3:05 PM
    Functions inline editor bug
    -.js
  • y

    yus

    06/01/2017, 3:06 PM
    so the code snippet above works
  • y

    yus

    06/01/2017, 3:06 PM
    but the following fails
  • y

    yus

    06/01/2017, 3:07 PM
    Untitled.js
  • y

    yus

    06/01/2017, 3:09 PM
    The two snippets above are equivalent in functionality, differing only at line 18 in terms of syntax: one line vs multiline if statement
    n
    b
    • 3
    • 27
  • y

    yus

    06/01/2017, 3:09 PM
    losing hair fast
  • y

    yus

    06/01/2017, 3:10 PM
    i could be doing something wrong
  • e

    eliezedeck

    06/01/2017, 3:51 PM
    I'm not sure if this is intended or not, but I think there might be something weird. In the console page, when enabling an Integration (I tried authentications only so far), the page reloads. It gives a feel of an HTML <form> that does a POST because there was no event.preventDefault() called before the handler returned. I also used to get this when using React as my frontend, and I realized later that it was because I was only calling event.preventDefault() after my processing, and because it immediately reloads the page, I could not see that it was never called because there was something that caused exception in earlier calls, and the handler didn't return false nor prevented the default behavior, so the POST fired as expected, causing a page reload. Probably also because of buffered console, which caused delays before I could see anything on the dev console, I mean, it's not straightforward to debug.
  • e

    eliezedeck

    06/01/2017, 3:52 PM
    I might be wrong, but it certainly felt that way
  • e

    eliezedeck

    06/01/2017, 3:57 PM
    @nilan This also happens when I Disable an integration. And indeed, I could see some errors in the console right before the page reloads. So, definitely something that can be fixed there.
    n
    • 2
    • 5
  • p

    picosam

    06/01/2017, 4:15 PM
    Guten Abend! Just to be sure: if I have permissions set on different fields and I would like to fetch those fields or not depending upon the role of the person querying, I should simply use directives, right?
    n
    • 2
    • 3
  • m

    mathieusylvain

    06/01/2017, 4:36 PM
    @nilan โ€“ Are there goo generic admin ui/tool for connecting to GraphQL databases ? Similar to the web ui for MySQL and other SQL-Like databases ?
    n
    • 2
    • 1
  • d

    doug_w

    06/01/2017, 5:21 PM
    Anyone in here have expereince with
    apollo-connect
    and using it to
    mapQueriesToProps
    with Redux?
  • e

    eliezedeck

    06/01/2017, 6:50 PM
    @nilan I'm trying-out subscription, and I'm always getting an
    error
    after a few seconds. What should I look for to solve it? I'm new to the concept of GraphQL, and I'm not sure if I'm doing something wrong. I have reduced the subscription to bare minimum, and I still get the same error message that contains absolutely no error message whatsoever
    Subscription_error__cj3eqcbi92ib00175qi9kicfo_exists_.php
  • u

    user

    06/01/2017, 6:51 PM
    @nilan commented on @eliezedeckโ€™s file https://prisma.slack.com/files/U5M2KE6P5/F5LMMT41E/subscription_error__cj3eqcbi92ib00175qi9kicfo_exists_.php: is this in the Playground or in your app?
    Subscription_error__cj3eqcbi92ib00175qi9kicfo_exists_.php
  • e

    eliezedeck

    06/01/2017, 6:51 PM
    Playground
1...212213214...637Latest