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

    peterp

    06/14/2017, 2:12 AM
    Also, with functions can I reference any node module? It doesn’t look like the examples have a package.json so I’m curious how it works. Edit - just stumbled over https://tehsis.github.io/webtaskio-canirequire/
  • j

    jimthedev

    06/14/2017, 2:51 AM
    graphcoolers: Do you use mysql or postgres aurora? I was considering doing something w/the postgres version but it looks to still be in beta and was curious if you had any comments on the stability of postgres if you're using it.
    n
    • 2
    • 1
  • f

    fourcolors

    06/14/2017, 3:30 AM
    Ok, yet another question. How fast does data sync from graph.cool to algolia and is there a way to subscribe to algolia when results change? My use case is I have a broadcasting user that has other users around that are also broadcasting their location. I’d like to automatically update the map so that the users can see other others moving around.
  • f

    fourcolors

    06/14/2017, 3:30 AM
    so the user needs to subscribe to an algolia search result.
  • f

    fourcolors

    06/14/2017, 3:36 AM
    I think I’ll just put a refresh button for v1 of this app lol
  • f

    fourcolors

    06/14/2017, 3:52 AM
    Also, I’m having trouble finding where to create the “API Key” for algolia
  • j

    jeremy-hunter

    06/14/2017, 3:56 AM
    @fourcolors Look on the left side of the Algolia console - icon looks like a key
  • f

    fourcolors

    06/14/2017, 3:58 AM
    aaaaahh… I thought it was something I needed to generate inside of graph.cool haha ok makes more sense found it
  • f

    fourcolors

    06/14/2017, 4:04 AM
    You guys are getting better at writing docs, bravo!
  • d

    delgermurun

    06/14/2017, 6:11 AM
    Hi all, Can I get current session user's id in INLINE Function of Request Pipeline?
    a
    • 2
    • 2
  • c

    codepreneur

    06/14/2017, 9:16 AM
    guys
  • c

    codepreneur

    06/14/2017, 9:16 AM
    didy ou find that updater is not working on react-relay/compat mode ?
  • c

    codepreneur

    06/14/2017, 9:16 AM
    in commitMutation ?
  • c

    codepreneur

    06/14/2017, 9:17 AM
    it seems to me updater is not even get called in relay compat mode
  • t

    the_bluescreen

    06/14/2017, 9:21 AM
    I have one problem about datas. I want to delete nodes that has null data from UI. But the problem is that is giving error as “Cannot return null for non-nullable type (line 7, column 36): id comment createdAt createdBy { id } post { id } updatedAt ^” so how can I remove items without know IDs? I cannot see or check them on data page because of this error.
    n
    • 2
    • 5
  • p

    pdrummond

    06/14/2017, 10:20 AM
    Hi, assuming a simple blog post example where I am adding a new comment to a post, is it possible to set the "post.updatedAt" field within the createComment mutation? I can associate the comment with the post using "postId: $postId" so I thought something like "postUpdatedAt: $now" would be a natural way to do it, but it returns an "Unknown Argument" error for "postUpdatedAt". So would I have to do two separate mutations for this?
    a
    • 2
    • 1
  • j

    joar

    06/14/2017, 11:38 AM
    So many questions in this channel haha, you guys should hire someone to just answer questions on a permanent position
  • j

    joar

    06/14/2017, 11:40 AM
    I’ll add another one to the pile: is it possible to add fields to a relationship? Like I create a relationship named CommentOnPost and then I want to add some metadata to that relationship
    s
    • 2
    • 1
  • a

    afgh

    06/14/2017, 1:10 PM
    Is it possible to get authentication events like login and log out in a subscription? I’m not sure what to subscribe to as there are no node changes.
    n
    • 2
    • 16
  • a

    alechp

    06/14/2017, 4:35 PM
    Is there any value in importing graphql-tag when react-apollo provides gql ?
    n
    • 2
    • 4
  • j

    jschloer

    06/14/2017, 4:45 PM
    Is there any way to have the user field populated on a create<Item> mutation automatically using the current session user or do I need to provide the user id in the mutation every time?
    a
    • 2
    • 3
  • t

    typaza

    06/14/2017, 5:30 PM
    what is the best way to upload image using apollo react
    n
    • 2
    • 2
  • a

    aurnik

    06/14/2017, 7:59 PM
    Just wanted to ask this again if anyone has had experience with nested mutations
    a
    • 2
    • 1
  • a

    aabreu

    06/14/2017, 9:05 PM
    Hey guys, sorry if this question is too dumb 🙂 but I just added a user via the console like so:
    Copy code
    mutation {
      createUser(authProvider: {
        email: {
          email: "<mailto:email@email.com|email@email.com>"
          password: "secret-password"
        }
      }
      	name: "This Guy"
      ) {
        id
        name
      }
    }
    How do I make this into a mutation that I can use in code? eg, this way:
    Copy code
    const addMutation = gql\`
      mutation addPost($description: String!, $imageUrl: String!) {
        createPost(description: $description, imageUrl: $imageUrl) {
          id
          description
          imageUrl
        }
      }
    \`
    The Auth provider is confusing me
    k
    • 2
    • 2
  • j

    jaga_santagostino

    06/14/2017, 9:50 PM
    Hello, is it possible to have a custom resolver function for a field? I would like to get just an excerpt of a very long text
  • j

    jaga_santagostino

    06/14/2017, 9:50 PM
    As a workaround i created this excerpt with functions on creation and update mutation
  • j

    jaga_santagostino

    06/14/2017, 9:51 PM
    But that's way too cumbersome, especially considering i have to identical functions
    a
    • 2
    • 1
  • s

    steven

    06/14/2017, 10:32 PM
    What are people using for offline first functionality. By itself Apollo-client does not persist data, but I believe there is Redux persist. Just wondering about the sync when the user reconnects, or may just disable updates when the app is offline. Or will maybe Realm.io will play nice with Apollo and Graph.cool?
    👀 1
    m
    k
    a
    • 4
    • 3
  • s

    sdubois

    06/15/2017, 9:05 AM
    Hi! 🙂 I tried to upload files again to the graphcool console, but like experienced a few weeks ago (and discussed with @sorenbs I believe), the file remains inaccessible (AccessDenied). Is there an issue tracking this somewhere and what was the workaround?
    n
    • 2
    • 4
  • l

    liesbethhermans

    06/15/2017, 10:14 AM
    Hi GraphQL fans! I'm Liesbeth, community Manager at Hackages (hackages.io). We're organising a fun & free HackJam Meetup about GraphQL with React vs. Angular on the 27th of June in Amsterdam @booking.com. Feel free to join us! 👌 🚀 RSVPs & more info here http://bit.ly/2sv2LjM
    🚀 3
    👍🏻 1
    graphql 2
    🦜 1
    n
    • 2
    • 3
1...230231232...637Latest