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

    freddie-codogo

    11/20/2017, 12:37 PM
    I keep getting
    {"error":"The resolver function "authenticate" is not nullable, but the function returned null."}
  • d

    daniele

    11/20/2017, 1:24 PM
    @nilan I replied again on the forum
  • h

    huv1k

    11/20/2017, 1:29 PM
    does somebody have problem with hooks functions on graphcool cloud? or is just me so i can create issue otherwise
    n
    • 2
    • 5
  • y

    yuri

    11/20/2017, 2:18 PM
    I’ve tried to use async/await for resolver functions and it didn’t work (‘use latest’ added). Some ES6/ES7 features are still not available?
    a
    a
    • 3
    • 30
  • s

    senorcodecat

    11/20/2017, 4:29 PM
    Any of you guys hooked up Stripe with the new framework?
  • u

    user

    11/20/2017, 4:34 PM
    @Dukuo commented on @yuri’s file

    https://prisma.slack.com/files/U83T0RRUP/F82TZ8U9Y/image.png▾

    : I actually had this issue, but I re-deployed the api altogether because of another issue, then this logs thing dissapeared.
  • d

    Dukuo

    11/20/2017, 4:36 PM
    Good to know it works, but I was already using
    Bearer
    (actually, the interface does this alone when selecting either a user or as Admin)
  • d

    Dukuo

    11/20/2017, 4:43 PM
    damn these time-zones are a PITA
  • d

    Dukuo

    11/20/2017, 4:44 PM
    hope you are online @nilan
    n
    • 2
    • 8
  • p

    patrick

    11/20/2017, 4:44 PM
    Is the Algolia integration still supported on the Shared cloud cluster?
    e
    n
    • 3
    • 7
  • e

    Eric Taix

    11/20/2017, 4:54 PM
    Hi all, I'm facing an issue while testing my application on localhost: the graphcool server response is 405 (not allowed). So it seems to be a CORS issue but I was unable to find the way to enable CORS. Did I miss something ? Ouups it was a newbie question : I used http://localhost:60000/graphql as my Apollo Uri instead of http://localhost:60000/simple/v1/xxxxxxxxxxx
  • i

    inderdeepbajwa

    11/20/2017, 5:33 PM
    Hey guys! Just reported two new bugs on GitHub (as Nilan referred me to do so)
    💯 1
  • e

    elmir

    11/20/2017, 6:10 PM
    @here Can anyone point me in the right direction for updating multiple records at once?
  • e

    elmir

    11/20/2017, 6:12 PM
    @nilan
  • d

    Dukuo

    11/20/2017, 6:12 PM
    @elmir https://dev.graph.cool/docs/faq/graphql-combining-multiple-queries-and-mutations-cahzai2eur/
    💯 2
  • d

    Dukuo

    11/20/2017, 6:12 PM
    btw there are some Netlify links in Graphcool's Twitter account that are being referenced in the forums, but the links are down
  • e

    elmir

    11/20/2017, 6:12 PM
    Ooh, fancy. Thanks @Dukuo!
    🦜 1
  • t

    tomhut

    11/20/2017, 6:13 PM
    ^ this changes everything
  • d

    Dukuo

    11/20/2017, 6:14 PM
    indeed, batch queries/mutations are da best
  • e

    elmir

    11/20/2017, 6:14 PM
    One other question. Is it possible at all through the GQL spec to update a field in a query using its existing field value. For example, if I wanted to run a mutation that added
    1
    to some arbitrary integer field on every record, would that be possible?
  • d

    Dukuo

    11/20/2017, 6:15 PM
    you can achieve that by using
    @defaultValue(value:"SomeCrazyAssIntegerLOL")
    in the particular
    field
    of your
    Type
  • d

    Dukuo

    11/20/2017, 6:16 PM
    but if you want to update it using mutations then I guess one monkey patch would be retrieving the record first
  • d

    Dukuo

    11/20/2017, 6:16 PM
    and feeding the same record to update itself with the static value you want to set
  • d

    Dukuo

    11/20/2017, 6:16 PM
    but I would suggest to use the
    defaultValue
    right from the beginning to avoid malfunction
  • e

    elmir

    11/20/2017, 6:16 PM
    Well, it's not totally static. It adds
    1
    to the field that's already on there
  • d

    Dukuo

    11/20/2017, 6:17 PM
    plan your schema first, then execute queries and mutations
  • e

    elmir

    11/20/2017, 6:17 PM
    So if I have 2 models, one with
    order:1
    and
    order:2
  • e

    elmir

    11/20/2017, 6:17 PM
    I want to run a query that updates them to be
    order:2
    and
    order:3
  • d

    Dukuo

    11/20/2017, 6:17 PM
    you could that with hooks I think
  • e

    elmir

    11/20/2017, 6:17 PM
    and I run a filter that's
    order_gte:1
    for example to get the records
1...439440441...637Latest