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

    faure

    06/28/2017, 3:54 PM
    Has anyone here tried to use a GraphQl schema as type definitions for flow?
    d
    • 2
    • 3
  • p

    picosam

    06/28/2017, 3:56 PM
    Hello! Is there a way (from the console) to copy all values from a
    Type
    field
    into a same `Type`‘s new
    field
    ?!
  • h

    hvillain

    06/28/2017, 5:12 PM
    Any hint on how to use async/await in Functions? I keep getting that regeneratorRuntime is not defined. Appart from writing 'use latest' on top of my online function, I failed at finding any ressource on that
    n
    • 2
    • 4
  • d

    danielvdm

    06/28/2017, 6:26 PM
    is there a way to edit cached data effectively in the apollo client?
  • d

    danielvdm

    06/28/2017, 6:26 PM
    usecase:
  • d

    danielvdm

    06/28/2017, 6:26 PM
    I get a list of events through a query
  • d

    danielvdm

    06/28/2017, 6:26 PM
    I then join an event (hence modifies its participants field)
    n
    • 2
    • 13
  • d

    danielvdm

    06/28/2017, 6:27 PM
    I want my UI to reflect the change in # in participants
  • d

    dan

    06/28/2017, 6:40 PM
    Hey, Just signed up with you guys. Is there a way to get the GraphCool CLI to authenticate in a terminal only setup?
    n
    • 2
    • 2
  • d

    danielvdm

    06/28/2017, 6:48 PM
    can i delete a relation from the console?
    n
    • 2
    • 29
  • d

    danielvdm

    06/28/2017, 6:52 PM
  • c

    calvinl

    06/28/2017, 7:55 PM
    is it possible to create multiple nodes with one mutation in a one-to-many relation, e.g. create many `Post`s on a single
    Author
    ? Or do I have to run the mutation multiple times?
    n
    • 2
    • 6
  • a

    allpwrfulroot

    06/28/2017, 9:07 PM
    Its not possible to filter allUsers based on a field that's a list? For example, color_not: "blue" where the User field color could be ["pink", "red"]
    a
    a
    • 3
    • 11
  • d

    dan

    06/28/2017, 10:17 PM
    Hey! Is it possible to make a database entry with a TTL? So it will delete itself after X amount of seconds
    a
    n
    • 3
    • 9
  • p

    phil

    06/28/2017, 10:24 PM
    How far away are
    Interfaces
    in graph.cool?
    a
    • 2
    • 1
  • d

    dgotty

    06/28/2017, 10:41 PM
    Hey all. Just curious if there is a way to setup multiple relations of 2 of the same types in GraphCool. For instance: I have a type called Game. It can be started AND stopped by Users but it may be started by Jane and stopped by John. Is there a way to setup a StartedBy relation field and StoppedBy relation field on the Game type? Or does GraphCool expect me to setup another type that would manage these relationships?
    a
    • 2
    • 29
  • d

    dgotty

    06/28/2017, 10:42 PM
    New to GraphCool and GraphQL so my apologies if this is an odd question
  • s

    sajmil

    06/28/2017, 11:38 PM
    This may seem dumb. But big problem. Can't use emojis ie 😏 in our functions. It Says theres an 'internal server error' when trying to update function
    a
    • 2
    • 2
  • v

    visualbbasic

    06/29/2017, 12:25 AM
    guys
  • v

    visualbbasic

    06/29/2017, 12:25 AM
    If I need to query a set of data
  • v

    visualbbasic

    06/29/2017, 12:25 AM
    but it's logical for just 1 component to consume it
    • 1
    • 1
  • v

    visualbbasic

    06/29/2017, 12:27 AM
    would you query it like
    Copy code
    query {
       viewer {
           parent {  
                edges {
                   node {
                      children { edge node }
                   }
                }  
            }
       }
    }
    or
    Copy code
    query {
       viewer {
          parent { edges node }
          children {  edges node }
       }
    }
  • v

    visualbbasic

    06/29/2017, 12:27 AM
    which one is favoured in Relay?
  • v

    visualbbasic

    06/29/2017, 12:30 AM
    and nested query like above makes it difficult to loop through data structure from code
  • a

    agartha

    06/29/2017, 12:32 AM
    The result would be different too right? First query gets children of parent, second one gets all children of all parents, because it's not nested?
    v
    • 2
    • 1
  • v

    visualbbasic

    06/29/2017, 12:36 AM
    result will be different (payload) but final view that user get will be the same
  • v

    visualbbasic

    06/29/2017, 12:37 AM
    because second one will get all the foreign keys that points back to parent
  • v

    visualbbasic

    06/29/2017, 12:37 AM
    so from frontend logic I can just do filtering accoding to that
  • a

    agartha

    06/29/2017, 12:39 AM
    So why would you get more data, that you (might) not need, and then filter it
  • a

    agartha

    06/29/2017, 12:39 AM
    One of the big powers of GraphQL is the nesting
1...249250251...637Latest