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

    Sergey

    07/26/2017, 8:41 AM
    hi guys, can help me? can i create field unique by userId?
    d
    a
    • 3
    • 4
  • h

    hvillain

    07/26/2017, 10:24 AM
    Hello all, any insight on how RxJS or new libraries like Cycles.js would integrate with Apollo? I've been using Recompose extensively recently and am looking for more client-side FUN :)
  • q

    q666

    07/26/2017, 11:43 AM
    Is it still possible to use your currently logged-in user feature when i’m not using auth0 provider but a raw api call like Expo.Facebook.logInWithReadPermissionsAsync?
  • q

    q666

    07/26/2017, 12:02 PM
    And if i’m tied to auth0 dose it mean that i’ll loose the graph.cool permissions system ?
    n
    • 2
    • 1
  • p

    picosam

    07/26/2017, 3:54 PM
    Dear all, let’s say I have a
    Type
    called
    Absence
    containing fields
    startDate
    and
    endDate
    . Let’s say every
    User
    has multiple absence periods (one-to-many relation). If I want to query for the
    User
    availability, what’s the filter I should give? So, I want a
    query
    that would only return available `User`s between a given start date and a given end date (input variables), by looking at their related `Absence`s. I hope that make sense? (https://www.graph.cool/forum/t/filtering-by-datetime-range/391)
    n
    • 2
    • 3
  • f

    fredelf

    07/26/2017, 3:55 PM
    Anyone had success using two or more Auth0 clients to authorize with GraphCool?
  • t

    typaza

    07/26/2017, 4:05 PM
    what's the best way to upload image with apollo ?
    d
    • 2
    • 2
  • k

    kosai106

    07/26/2017, 4:28 PM
    Thanks for the invite @schickling
  • p

    peterp

    07/26/2017, 5:13 PM
    given a
    current user
    (passing in auth header) can I run a
    updateUser
    mutation w/o passing in the id?
  • p

    peterp

    07/26/2017, 5:13 PM
    Copy code
    mutation {
      updateUser(firstName:"Peter", lastName:"P") {
        id
      }
    }
  • p

    peterp

    07/26/2017, 5:14 PM
    perhaps i’m missing a pattern, but right now i feel like i get userId back from apollo query, then save it to redux store, then fetch it to update the user which seems like a lot of work
    d
    • 2
    • 2
  • a

    auser

    07/26/2017, 5:21 PM
    so I have an interesting case I’m wondering if I can do in one query or not: https://gist.github.com/auser/d4c8a97d2b8f882f8844afee4566f85a. Basically, the
    contact
    type is required for the
    createContactMessage
    mutation to succeed. Is it possible to both create the contact and the contact message in a single query?
  • a

    auser

    07/26/2017, 5:22 PM
    I can accomplish this in multiple mutations, but curious if it can be done in a single one
  • p

    peterp

    07/26/2017, 5:50 PM
    @auser is contact message under contact? You can do up to 3 nested mutations
  • a

    auser

    07/26/2017, 5:51 PM
    no, it’s related
  • d

    dankent

    07/26/2017, 6:32 PM
    @auser if you want to create the Contact when you create the ContactMessage, use this: https://www.graph.cool/docs/reference/simple-api/nested-create-mutations-vaet3eengo/
  • d

    dankent

    07/26/2017, 6:32 PM
    @auser if Contacts already exist and you just want to connect them, use this: https://www.graph.cool/docs/reference/simple-api/nested-connect-mutations-tu9ohwa1ui/
  • a

    auser

    07/26/2017, 6:33 PM
    No, I mean’t I wanted to create the contact and then use it in the second mutation
  • d

    dankent

    07/26/2017, 6:36 PM
    That's exactly what a nested create mutation will do. If createContactMessage is the outer mutation, the contact in the nested mutation will be created before the outer mutation is completed
  • a

    auser

    07/26/2017, 6:37 PM
    oh interesting
  • d

    dankent

    07/26/2017, 6:40 PM
    It will look something like: (not tested)
  • d

    dankent

    07/26/2017, 6:40 PM
    -.js
  • d

    dankent

    07/26/2017, 6:41 PM
    So the details of the Contact you want creating go in the contact argument of the createContactMessage mutation
  • d

    dankent

    07/26/2017, 6:43 PM
    This assumes the relationship from ContactMessage to Contact is to-1, which seems likely from the name contact. You can do the same thing with to-many relations but you have to put [ ] around the nested mutations in the property
  • j

    justinrich

    07/26/2017, 7:17 PM
    Hey, to create a subscription w graphcool do I need to first create a “function” in the web ui?
  • j

    justinrich

    07/26/2017, 7:17 PM
    or can I set this dynamically via my web app
    n
    • 2
    • 3
  • m

    martin

    07/26/2017, 8:00 PM
    When a
    schema extension
    inline function returns an error via
    Promise.reject
    there appears to be no way to perform error handling on the client side. Am I correct? For example, the
    catch()
    doesn’t seem to work:
    Copy code
    this.props.updateEmail({ variables: { email, password, newEmail } })
    	.then(id => {
    		console.log('success')
    	})
    	.catch(err => {
    		console.log(err)
    	})
    n
    p
    • 3
    • 14
  • s

    schickling

    07/26/2017, 8:06 PM
    Hey everyone <!here|@here>! We’ve just open-sourced Chromeless which you can use for your integration tests: https://twitter.com/graphcool/status/890289612618432513 I’m really excited about this because you can now run all of your tests in parallel, which in our case reduced our test duration from >20min to a few seconds. P.S. We’re also currently on the HN frontpage. Would be awesome if you could show some support! 💚
    🙌 22
    🎉 9
    👍 14
    💪🏻 4
    ⭐ 1
    💎 10
    a
    m
    z
    • 4
    • 4
  • d

    dvarjun

    07/26/2017, 9:57 PM
    hi
  • d

    dvarjun

    07/26/2017, 9:57 PM
    could I possibly get some helo
1...287288289...637Latest