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

    artyom

    05/20/2017, 9:20 PM
    @pabloalonso @chaserx @massimilianomarini @akwasisefaboakye @dbkooper @audric @garethrobertlee @tdekoekkoek @rborman @ilya_m @timneutkens @whatupdave @amore @antonysastre @maxim @damian519 @wadim @tlobinger @bmullan91 whoop! ๐ŸŽ‰ what an awesome group of folks joining us today! glad to have you in our slack graphcool ๐Ÿ™Œ
  • a

    artyom

    05/20/2017, 9:20 PM
    if youโ€™re here for GraphQL-Europe, head on over to #graphql-europe-comm graphql europe
  • a

    arifads

    05/21/2017, 1:44 AM
    Hi. Today I was testing the new Function feature.
    n
    • 2
    • 1
  • a

    arifads

    05/21/2017, 1:45 AM
    I noticed that since in my code I first create the row, then I add its relations, when the callback fires I don't get those relations set, I get null in the field
  • a

    arifads

    05/21/2017, 1:47 AM
    For example. I store the new 'Sell' and then I add the relation with the 'Customer', I don't get in the event bar from the callback the customer in the relation.
  • a

    arifads

    05/21/2017, 1:48 AM
    I changed the callback from create to update but it won't even send.
  • a

    artyom

    05/21/2017, 6:48 AM
    @eobogeanu @U5GQFF88P @alex.e.c @naidraikzir @chad hi everyone, welcome to graphcool !! Head on over to #graphql-europe-comm for any questions about GraphQL-Europe graphql europe ๐Ÿƒ
  • a

    avdeveloper

    05/21/2017, 8:00 AM
    I'm running into issues re: uploading an image via File API + fetch. Where's the proper channel to ask it? I'm getting an "Error from cloudfront"
  • a

    artyom

    05/21/2017, 8:01 AM
    @agao @avdeveloper @andreasillg @dave_b @jmbarroso @zlegein @datenpate @timlapluie @jeremy ๐Ÿ‘‹ welcome to graphcool , glad you're joining us!
  • a

    artyom

    05/21/2017, 8:01 AM
    For the GraphQL-Europe conference head on to #graphql-europe-comm
    ๐Ÿ‘ 2
  • s

    sorenbs

    05/21/2017, 8:04 AM
    Hi @avdeveloper you've come to the right place. Can you share the exact issue you are getting? Either here or a direct message
  • a

    avdeveloper

    05/21/2017, 8:04 AM
    @sorenbs ok sure let me link to a gist
  • a

    avdeveloper

    05/21/2017, 8:06 AM
    So here's my request, where
    image
    is the path to local file.
    uploadImage.js
  • a

    avdeveloper

    05/21/2017, 8:07 AM
    And this is what the server sent me
    Response.js
  • s

    sorenbs

    05/21/2017, 8:23 AM
    That looks weird to me. You are not supposed to get a cloudfront response back. What url are you using?
  • s

    sorenbs

    05/21/2017, 8:24 AM
    Have you seen https://www.graph.cool/docs/tutorials/file-management-eefoovo2ah/
  • a

    avdeveloper

    05/21/2017, 8:28 AM
    @sorenbs it turns out that I shouldn't pass the path to the local file as string. It should be an object defining the type, name, and uri. Here's what I changed the code to and it now works:
    Copy code
    data.append('data', {
                type: 'image/jpeg',
                name: newProduct.name + '-' + new Date().getTime() + '.jpg',
                uri: image
            });
    ๐Ÿ‘ 2
  • a

    artyom

    05/21/2017, 9:15 AM
    @olly.freeman @sportorent @chrisw welcome to graphcool ! If you're here for GraphQL-Europe head to #graphql-europe-comm graphql europe
    ๐Ÿ‘ 1
  • e

    erhankaradeniz

    05/21/2017, 11:45 AM
    Hi all, does anybody here have experience with user auth (with email) using relay modern. Iโ€™m looking for a simple example or a starting point so I know how to start it off
    n
    • 2
    • 1
  • a

    artyom

    05/21/2017, 1:25 PM
    @jamie @ryanl @yogieputra welcome to graphcool , glad you're here! ๐Ÿ˜ƒ
  • a

    artyom

    05/21/2017, 1:25 PM
    Head on to #graphql-europe-comm for anything GraphQL-Europe related graphql europe ๐Ÿƒ
  • c

    checkmatez

    05/21/2017, 1:50 PM
    Hey guys! How do i make a query with filter "MyRelationField is NULL"? Specifically i have a type "Lobby" with relations
    Copy code
    player1: User @relation(name: "Player1OnLobby")
    player2: User @relation(name: "Player2OnLobby")
    I want to get a node where player2 is Null. Nevermind, i figured that out:
    Copy code
    allLobbies(filter: {
        player2: null
      })
    ๐Ÿ‘ 1
    n
    • 2
    • 1
  • t

    toddgeist

    05/21/2017, 3:12 PM
    looking for an Schema Definition Parser
  • t

    toddgeist

    05/21/2017, 3:12 PM
    something that could get the Type and array of fields out
  • t

    toddgeist

    05/21/2017, 3:13 PM
    and even better if it could serialize again.
  • t

    toddgeist

    05/21/2017, 3:13 PM
    seems like it shouldnโ€™t be tough and it should be useful so I am surprised that I canโ€™t find one
  • t

    toddgeist

    05/21/2017, 3:31 PM
    never mind ๐Ÿ™‚
    n
    • 2
    • 3
  • z

    zol

    05/21/2017, 4:21 PM
    Is it possible to have if statements to check the value of a nested field, or is that supposed to be done on client-side? For example I'm playing around with the neo4j community graph in GraphiQL and I want to include users only if they have a repository written in some language X;
    User @include(if: .repositories.language == $language )
    -- is this possible?
  • c

    checkmatez

    05/21/2017, 5:43 PM
    Hey, seems like my subscription not receiving notifications for UPDATED mutation type. It does receive CREATED and DELETED mutations though. I am checking in playground. @nilan i will be waiting for your response on monday ๐Ÿ˜‰
    n
    • 2
    • 30
  • d

    defrex

    05/21/2017, 6:24 PM
    Hello. I'm loving graph.cool so far, great work. I'm trying to accomplish something that seems like it should be simple, but I'm not sure what the right approach is. Basically I have a Type with a relationship to User. When a user creates an instance, I want the user relationship automatically set to the currently authenticated user. Sort of a post-author situation.
    n
    • 2
    • 9
1...198199200...637Latest