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

    sorenbs

    04/04/2017, 5:43 PM
    The next sections on that page are fairly comprehensive. https://www.graph.cool/docs/reference/simple-api/one-node-ua6eer7shu/ and https://www.graph.cool/docs/reference/simple-api/filtering-by-field-xookaexai0/ for example
  • s

    sorenbs

    04/04/2017, 5:43 PM
    https://www.graph.cool/docs/reference/simple-api/traverse-the-graph-aihaeph5ip/
  • s

    sorenbs

    04/04/2017, 5:44 PM
    Relation traversal and filters is what provides all the value 🙂
  • a

    adamibaker

    04/04/2017, 5:46 PM
    indeed — i think most of my questions have to do with mutations that affect multiple relations and some logic: for example, something like: where model is:
    user
    ->
    person
    ->
    address
    what's the query/mutation for:
    createOrUpdateUser
    with nested
    createPersonOnUser
    and
    createAddressOnPerson
  • a

    adamibaker

    04/04/2017, 5:48 PM
    and i can't seem to find any documentation on how to effectively mutate fields that are type
    [String]
    or
    [Number]
    for example—what kinds of array operations are available if any?
  • a

    adamibaker

    04/04/2017, 5:48 PM
    sorry for my newbie questions—i'm totally new to graphql / graphcool 😉
  • s

    sorenbs

    04/04/2017, 5:49 PM
    No issue at all 🙂
  • s

    sorenbs

    04/04/2017, 5:49 PM
    1) Array operations on scalar lists are currently not supported. You have to completely reset the field
  • s

    sorenbs

    04/04/2017, 5:50 PM
    2) Start with the createUser mutation and explore how nested mutations work
  • s

    sorenbs

    04/04/2017, 5:52 PM
    You can either create the related node inline:
    Copy code
    mutation createUser(name: “Carl”, home: {isItCool: yes})
    or reference an existing node:
    Copy code
    mutation createUser(name: “Carl”, homeId: “existing-home-id")
  • a

    adamibaker

    04/04/2017, 5:54 PM
    👍 thanks
  • s

    sorenbs

    04/04/2017, 5:55 PM
    any time 😄
  • a

    artyom

    04/04/2017, 7:38 PM
    @tpreusse hello! welcome to graphcool 👋
  • t

    tpreusse

    04/04/2017, 7:40 PM
    hello everyone 👋
    🙌 3
  • a

    arifads

    04/04/2017, 7:58 PM
    Is Graph.cool down?
    t
    n
    p
    • 4
    • 13
  • p

    philippbosch

    04/04/2017, 8:40 PM
    i’m trying to change a field in a schema from string to int, then I get this message, click “Got it”, button turns green and label changes to “Save Changes”, but clicking that button doesn’t do anything. what am I doing wrong?!
  • n

    nilan

    04/04/2017, 8:41 PM
    you already got data, right?
  • p

    philippbosch

    04/04/2017, 8:41 PM
    yes
  • p

    philippbosch

    04/04/2017, 8:41 PM
    but i’m fine with losing the data in this column
  • p

    philippbosch

    04/04/2017, 8:41 PM
    renaming the field works btw
  • n

    nilan

    04/04/2017, 8:43 PM
    deleting the field and creating it as int should work, but let me try to reproduce the migration problem
  • p

    philippbosch

    04/04/2017, 8:43 PM
    yes, i renamed it and created a new field.
  • a

    acyuta108

    04/04/2017, 8:54 PM
    Hi. I keep on getting an error when submitting mutation requests. I tried both the lokka and fetch client (node)
    n
    • 2
    • 7
  • a

    acyuta108

    04/04/2017, 8:54 PM
    Request ID: cj140utyjmkkc01098djw4kdo
  • a

    artyom

    04/04/2017, 10:43 PM
    @gfredtech @tfiwm @hyvemynd @jstnedr hello there 🖖 it’s great you’re joining us at graphcool today! 🎉
    👍 1
  • a

    aurnik

    04/04/2017, 11:51 PM
    Will the updateOrCreate mutation eventually be supported within nested mutations?
  • j

    jimthedev

    04/04/2017, 11:52 PM
    If I was writing apollo + graphcool in ssr/next.js would props.data.loading ever be true on first render?
  • s

    sdubois

    04/05/2017, 4:31 AM
    @jimthedev depends if you use getDataFromTree I guess? See my example app https://github.com/relatenow/relate/blob/master/hocs/withData.js or next with-auto example
    j
    • 2
    • 4
  • s

    safari

    04/05/2017, 6:41 AM
    I am new in relay.
  • s

    safari

    04/05/2017, 6:42 AM
    Trying to learn in your website but am getting this error
1...143144145...637Latest