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

    eliezedeck

    06/05/2017, 6:06 AM
    ... still waiting for 0.7.1 support
  • e

    eliezedeck

    06/05/2017, 6:08 AM
    While talking about 0.7, will this next update (@sorenbs mentioned it would be early this week) add support for Query + Mutation support over WebSocket? I think that would be an important feature, especially on bad connectivity, as REST API sometimes doesn’t get thru as well as WebSocket (in ISPs like in our country (Madagascar))
  • f

    figo

    06/05/2017, 6:22 AM
    thanks @eliezedeck for the info. But I think subscription is an overkill in this case, since effectively subscription still requires sending two calls to the server. I guess I am requesting is something like nested queries
  • f

    figo

    06/05/2017, 6:24 AM
    (aka query dependency in a single call)
  • e

    eliezedeck

    06/05/2017, 6:24 AM
    @figo 🙂 sorry, I was simply adding more comments to my previous question
  • f

    figo

    06/05/2017, 6:24 AM
    ah my bad - I thought you mentioned query + mutation, which is kind of what I'm looking for 🙂
  • e

    eliezedeck

    06/05/2017, 6:24 AM
    but for your question, I’m not sure what you’re really after, but dependencies is one of the reason people use GraphQL; it’s just your query: it can pull all dependencies in one single call
  • f

    figo

    06/05/2017, 6:25 AM
    @eliezedeck not if you want to do a two dependent mutate in a single call
  • f

    figo

    06/05/2017, 6:27 AM
    (create B, then create A-B relationship)
  • e

    eliezedeck

    06/05/2017, 6:29 AM
    @figo I guess you’ll benefit from the Mutations over WebSocket like I do as well. That would be really cheap. Right now, it’s still over HTTPS, and it is expensive because it has to send everything (Auth tokens, etc...) everytime on each request. To my simple test, my payload is about 4KB, where as the same thing could have been done in just under 250B with WebSocket alone.
  • e

    eliezedeck

    06/05/2017, 6:29 AM
    so, you also create A, then?
  • e

    eliezedeck

    06/05/2017, 6:30 AM
    I don’t know if it’s possible to have multiple mutations in one single call, because you obviously need the “id” of the first entity
  • f

    figo

    06/05/2017, 6:31 AM
    in my case, A is already created (a registered user)
  • f

    figo

    06/05/2017, 6:31 AM
    so A's id is already known
  • f

    figo

    06/05/2017, 6:32 AM
    A is creating some TODO task (B). It seems I have to create B, and then connect A with B via relationship, in graph cool way
  • e

    eliezedeck

    06/05/2017, 6:34 AM
    really? that sounds inefficient ... I’m also a beginner in GraphQL, but I think you should be able to set
    ID!
    as plain strings in your mutation; these are all JSON in the end anyways
  • f

    figo

    06/05/2017, 6:40 AM
    i can give it a try and will let you know
  • e

    eliezedeck

    06/05/2017, 9:01 AM
    @figo worked for you?
    n
    f
    • 3
    • 8
  • p

    ppatidar

    06/05/2017, 9:02 AM
    @nilan I haave created one function and in this function i'm calling one webhook from TRANSFORM_PAYLOAD But my webhook not calling Please let me know what would be issue?
    ✅ 1
    n
    • 2
    • 6
  • s

    Slackbot

    06/05/2017, 10:10 AM
    This message was deleted.
    n
    • 2
    • 1
  • t

    titirex

    06/05/2017, 12:20 PM
    Hello, someone has a trick to compare an ID and a String in the query permission? I would like to something like
    resourceId_in: ["*", $node_id]
    where
    resourceId
    is actually a String
  • y

    yus

    06/05/2017, 12:35 PM
    I'm getting a timeout at the moment just creating a record in graphcool. anyone experiencing the same thing?
    ✅ 1
    n
    • 2
    • 12
  • y

    yus

    06/05/2017, 12:35 PM
    error message from cloudfront after 60seconds trying to create a record
    CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection.
    ✅ 1
  • a

    agartha

    06/05/2017, 12:45 PM
    Hi, is there any possibility to attach a function to a query on a type, instead of a mutation?
    n
    • 2
    • 2
  • a

    agartha

    06/05/2017, 12:46 PM
    For a computed column for example?
    n
    • 2
    • 16
  • l

    lastmjs

    06/05/2017, 4:07 PM
    I'm confused about
    updateOrCreate
    . Can someone post just a quick example query so I can see how it looks?
    a
    • 2
    • 5
  • p

    picosam

    06/05/2017, 4:25 PM
    Hello, anyone has experience in mapping apollo query results to interfaces?
  • a

    amann

    06/05/2017, 4:38 PM
    When using webhooks in functions, is it possible to not display the "node" property by specifiying if it is a "simple/apollo" api?
    n
    • 2
    • 3
  • d

    danielvdm

    06/05/2017, 4:53 PM
    did the function API change since like 2 weeks ago?
    n
    • 2
    • 11
  • d

    danielvdm

    06/05/2017, 4:53 PM
    all my server subsriptions seem to be broken now
1...217218219...637Latest