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

    gildas

    06/18/2017, 9:19 AM
    and it's for a classic react app with Next.js and Apollo
  • d

    danielvdm

    06/18/2017, 9:44 AM
    yeah i'm trying to use auth0 and FB login
  • d

    danielvdm

    06/18/2017, 9:44 AM
    not really sure about these JWTs
  • g

    gildas

    06/18/2017, 9:56 AM
    what are you struggling with ?
  • b

    bartamon

    06/18/2017, 11:16 AM
    has anybody worked with Enums in angular using graphcool?
    a
    • 2
    • 1
  • j

    jaga_santagostino

    06/18/2017, 12:09 PM
    as of today theres a way to whitelist clients that can access the project?
    a
    • 2
    • 5
  • b

    be4r

    06/18/2017, 5:11 PM
    i have the same queries on different react components. how do i make sure that each components requery based on a mutation from a different component
  • g

    geekodour

    06/18/2017, 5:29 PM
    the
    this.props.data.loading
    does not work sometimes. This has to do something with the graphcool server
    βœ… 1
    n
    c
    • 3
    • 21
  • g

    geekodour

    06/18/2017, 5:29 PM
    once i do another clone, the clone seems to work alright
  • g

    geekodour

    06/18/2017, 5:30 PM
    there are various issues that are solved on cloning a new one
  • g

    geekodour

    06/18/2017, 6:03 PM
    anyone else getting this issue?
  • b

    be4r

    06/18/2017, 6:14 PM
    how would I go about doing nested mutations?
    Copy code
    const createUser = gql`
      mutation ($idToken: String!, $name: String!, $emailAddress: String!){
        createUser(authProvider: {auth0: {idToken: $idToken}}, name: $name, emailAddress: $emailAddress) {
          id
          name
          createCloset(userId: id)
        }
      }
    `
    is this the right way? How can i pass in the createdUser's id into createCloset?
    n
    • 2
    • 5
  • p

    peterp

    06/18/2017, 7:00 PM
    Hey everyone - I have trouble googling this so pardon my lack of knowledge - I have a standalone Nodejs server and I'd like to make a mutation (or normal POST) to update a graph.cool record - how can I do that?
    n
    • 2
    • 3
  • c

    ckelley

    06/18/2017, 7:47 PM
    Hey everyone, seeking advice. the GraphQL spec sports a Union type to help querying multiple types. It's in the feature pipeline here: https://github.com/graphcool/feature-requests/issues/165 In the meantime though, I'm looking to merge two different types into a single "stream" and sort that stream by
    createdAt
    . The main way I can think to do this is by using a through type that manually merges the two. Is there a better option, and if not, what are the performance implications of using that strategy?
    n
    a
    • 3
    • 9
  • s

    s0enke

    06/18/2017, 7:49 PM
    Hi folks, I am one of the organizers of Serverless Hamburg Meetup, and I'd like to ask if it's possible whether the graph.cool folks could give a talk on our meetup: https://www.meetup.com/Serverless-Hamburg/
    n
    • 2
    • 1
  • t

    tomhut

    06/18/2017, 7:52 PM
    Germany has all the cool meetups!
    πŸŽ‰ 3
  • a

    agartha

    06/18/2017, 9:15 PM
    Q: How does Graphcool deal with unicode characters?
    ❓ 1
    n
    • 2
    • 30
  • m

    monte9

    06/18/2017, 9:51 PM
    how can I save a dictionary on the GraphCool?
    n
    • 2
    • 14
  • c

    ckelley

    06/18/2017, 10:09 PM
    Can the
    createdAt
    field be overriden?
    a
    • 2
    • 3
  • t

    trond

    06/18/2017, 11:38 PM
    @danielvdm hey I'm also doing RN+Graphcool+Auth0.. after a bit of struggle, things seems to be working ok now. I was informed that Graphcool does not accept RS256 signed idTokens so you have to resign it server side (I use webtask to do it). Then there is the refreshing of tokens and then there is the cumbersome Auth0 rule if you want to store metadata like a name in the Auth0 database. In all an amazingly amount of hassle compared to 1 line of code for logging in using Parse before. I believe Graphcool could benefit a lot by making a RN module that makes all of this trivial. I think a lot of mobile devs now jumping to RN would love to have such a plug'n'play module.
    d
    n
    • 3
    • 4
  • t

    trond

    06/19/2017, 12:03 AM
    @ajmakhl what's the response? did you try same code as in example here just to test? https://www.graph.cool/docs/reference/file-handling/file-upload-examples-zaif4eing1/
  • c

    ckelley

    06/19/2017, 12:04 AM
    Discussion: strategies that can be employed to protect a Graphcool API? 1) How to securely allow the
    createUser
    mutation only in your own applications? 2) Securely storing JWTs on the client side (both on a mobile device and the web) 3) Invalidating user tokens if necessary?
  • t

    trond

    06/19/2017, 12:11 AM
    @ckelley For web I think Auth0 recommends not using or storing refreshtoken, but using silent reauth. On mobile client I assume the sandboxed app storage is considered secure enough for typical apps. Regarding createUser, I guess some kind of limit per device or similar protection could be useful
    c
    • 2
    • 6
  • a

    agartha

    06/19/2017, 12:20 AM
    Yes
  • v

    visualbbasic

    06/19/2017, 1:58 AM
    i love graphql
  • v

    visualbbasic

    06/19/2017, 1:58 AM
    and relay
  • v

    visualbbasic

    06/19/2017, 1:58 AM
    is there any advantage of using apollo client?
    c
    • 2
    • 4
  • b

    Barrie

    06/19/2017, 5:06 AM
    What's the recommended practice for ordered relations? The ordering isn't in the Type as the same Type could be ordered differently by a parent relationship. How do I deal with inserting new item in the ordering in the parent and mutating that back to the server?
  • m

    mentallyretired

    06/19/2017, 5:15 AM
    hi guys, I'm pulling my hair out over here just trying to get a basic query to work in the playground (I assume its graphiql based). I have a "Product" model with a title and some other stuff. I'm just trying to get the first 50 product titles. what might that query look like? between nodes and edges I'm pretty lost, which is funny because i got mutations working just fine.
  • m

    mentallyretired

    06/19/2017, 5:16 AM
    -.js
1...234235236...637Latest