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

    nilan

    07/24/2017, 2:12 PM
    not exactly, it is
    event.data.<Type>.previousValues.fieldName
    👍 1
  • c

    ckelley

    07/24/2017, 2:15 PM
    Thinking about submitting a PR to
    graphql-request
    to add batch request capabilities; given the goal of keeping the lib really simple, is this something you all would accept?
    n
    • 2
    • 4
  • j

    jvbianchi

    07/24/2017, 2:48 PM
    hello, how can I extend a mutation type to run a custom function?
    n
    • 2
    • 4
  • m

    mwickett

    07/24/2017, 3:06 PM
    As part of the schema extension beta, I’m working on a password reset flow. Wanted to check in and see if anyone else has done this already?
    n
    m
    • 3
    • 10
  • a

    agartha

    07/24/2017, 3:24 PM
    Q: Can I return null from a SE? If I return an empty object, all result fields are null, but there's no bubbling.
    n
    • 2
    • 9
  • a

    andre

    07/24/2017, 4:10 PM
    Q: I’m little confused regarding the Auth0 integration. My use-case looks like this: I’m building a React Native app in which the user can perform a login against Auth0. As far as I understand it, Auth0 will return an
    idToken
    which can be passed to the
    createUser
    mutation. What happens when the token expires and the user has to perform another auth flow. This would lead to another entry in the
    User
    “table”, right?
    p
    • 2
    • 22
  • m

    mwickett

    07/24/2017, 4:19 PM
    Can I use
    graphcool-lib
    inside of a server side subscription function? Or does it only work in a schema extension function?
    a
    p
    • 3
    • 13
  • p

    Pieter

    07/24/2017, 5:20 PM
    What's the best practice for splitting dev, QA testing and production instances? Do I need to create a seperate project for each of them and change the endpoint used in code based on the NODE_ENV?
    n
    • 2
    • 15
  • s

    staugaard

    07/24/2017, 5:22 PM
    It is kind of annoying that you don’t have access to a node on subscriptions to deleted objects.
    previousValues
    does not have access to relations.
    n
    • 2
    • 9
  • p

    peterp

    07/24/2017, 5:48 PM
    how do i call
    authenticateAnonymousUser
    ? It consumes a String, but what about a userId?
    n
    • 2
    • 7
  • n

    nilan

    07/24/2017, 5:51 PM
    Hey Graphcool community <!here|@here>, it's me with another changelog update 👋 Last week we fixed a problem in our subscription system that caused intermittent connection errors 🎯 Some of you had reported problems in this channel before, which helped a lot in identifying this bug, thanks! 🙏 I'm more than amazed with all the great community contributions by our Graphcool Heroes we see every week. This will be a long list, so take a deep breath! - @gildas and the marmelab team released the GraphQL version of the popular admin-on-rest, a framework for building admin panels - @georgelovegrove put out a starterkit with Expo, Auth0, react-navigation and Graphcool - @agartha, @martin, @katopz all contributed great new functions examples including authentication with Github, adding contacts to a SendGrid email list, and a complete implementation of a Tic Tac Toe Server with Graphcool - and last but not least, @mj contributed a quick script to delete all nodes of a certain type. The full changelog can be found here: https://www.graph.cool/docs/faq/graphcool-changelog-chiooo0ahn/#week-29-(july-17-july-23) Some personal notes from my side: it's absolutely fantastic to see how helpful you are when others have questions or doubts, keep this up! 💚 I'd also like to mention our Forum which is great to ask more involved/detailed questions than Slack: https://www.graph.cool/forum/ Given the sheer volume of messages in this channel, it's not always possible for me to answer each and every question, so please consider posting a new Forum thread to discuss those questions 🙂
    🎉 4
    👍 15
    ❤️ 3
  • f

    frankspin

    07/24/2017, 6:33 PM
    Hey Guys. Love to hear your strategies on authorization. Do you use role based system, access groups or relationships?
    d
    • 2
    • 1
  • s

    spences10

    07/24/2017, 7:14 PM
    Can I start the console walk through again?
  • s

    spences10

    07/24/2017, 7:15 PM
    I skipped it last time 🙃
    ✅ 1
    a
    • 2
    • 3
  • f

    frankspin

    07/24/2017, 7:50 PM
    How would I set a Enum field?
    Copy code
    mutation {
              createUser(
                auth0UserId:"${graphcoolUser.user_id}"
                name: "${graphcoolUser.name}"
                picture: "${graphcoolUser.picture}"
                email: "${graphcoolUser.email}"
                emailVerified: ${graphcoolUser.email_verified},
                role: "ADMIN"
              ){
                id
              }
            }`)
    Copy code
    role: "ADMIN"
    isn't working, also role: "[ADMIN]" isn't working
    c
    • 2
    • 4
  • a

    agartha

    07/24/2017, 7:53 PM
    Lose the quotes:
    role: ADMIN
  • j

    jdspugh

    07/24/2017, 10:47 PM
    Anyone have some auth with email snippets for react native?
    👍 2
    n
    a
    • 3
    • 17
  • m

    matty

    07/25/2017, 3:23 AM
    if I have a property
    [Type]
    and let the user edit the list of Types in the browser, what's the best option for committing all updates in a single transaction (on both the array of Types and the parent object)
    n
    • 2
    • 2
  • a

    amore

    07/25/2017, 3:23 AM
    I’m looking for auth with email snippets for react native as well… thanks a bunch!
    👍 2
  • m

    mikael

    07/25/2017, 3:34 AM
    @matty are you looking for
    Dataloader
    ? the node module from Facebook that lets you batch requests
  • m

    matty

    07/25/2017, 3:34 AM
    not really, happy to make multiple requests at this stage if thats the only way
    d
    n
    • 3
    • 11
  • m

    matty

    07/25/2017, 3:34 AM
    just wanting to know if there's a way to do it in a single request
  • m

    matty

    07/25/2017, 3:34 AM
    (also - does graphcool support batched requests from their side?)
    n
    • 2
    • 1
  • m

    matty

    07/25/2017, 3:36 AM
    e.g. I can easily update
    [String]
    in a single mutation, not sure if its possibly when its an array of a custom type though
  • m

    matty

    07/25/2017, 3:54 AM
    trying to use an updateOrCreate operation... if its a new object, I don't have an id
  • m

    matty

    07/25/2017, 3:54 AM
    and it fails on update -> id field not being present. Does that sound right?
  • m

    matty

    07/25/2017, 3:56 AM
    okay, just found this https://github.com/graphcool/feature-requests/issues/25#issuecomment-316362550
  • m

    matty

    07/25/2017, 3:56 AM
    back to the drawing board 🙃
  • m

    matty

    07/25/2017, 4:50 AM
    does this API functionality exist anymore? "createAuthorAndConnectPosts"
  • m

    matty

    07/25/2017, 4:50 AM
    taken from - https://www.graph.cool/docs/reference/simple-api/nested-connect-mutations-tu9ohwa1ui/
1...284285286...637Latest