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

    mike.johnson

    08/16/2017, 4:28 PM
    are functions down?
    n
    a
    • 3
    • 88
  • p

    peter

    08/16/2017, 7:16 PM
    Hi all! are there any best practices for extracting graphql queries into individual
    .graphql
    files?
    d
    • 2
    • 1
  • d

    dtuite

    08/16/2017, 10:14 PM
    Question: Any time a node is deleted, I would like to run a function which aggregates data for the user who owned the node via relation. How can I do this? Imagine I have
    User
    with many
    Post
    Copy code
    User {
      id
      postCount
    }
    
    Post {
     id
     userId
    }
    When I’m creating a post, I can update the
    postCount
    in a function because the
    userId
    is available in the payload of the
    Post
    . When deleting a
    Post
    , I only seem to receive the
    id
    of the
    Post
    in the payload. If I try to use this to look up the user I find the post is already deleted (even in pre-write). I can’t add the user id to the payload either. Doing so makes my mutation fail. How can I figure out who owned the post in the function?
    m
    d
    n
    • 4
    • 10
  • j

    justinrich

    08/16/2017, 10:20 PM
    qq
  • j

    justinrich

    08/16/2017, 10:20 PM
    can I use the value of a requested field as a parameter in a query
  • j

    justinrich

    08/16/2017, 10:20 PM
    For example
  • j

    justinrich

    08/16/2017, 10:21 PM
    if I’m querying all users and their conversations at the same time
  • j

    justinrich

    08/16/2017, 10:21 PM
    or one specific user
  • j

    justinrich

    08/16/2017, 10:21 PM
    can I use that user’s returned ID as a parameter for conversations
    a
    • 2
    • 21
  • j

    jferrettiboke

    08/16/2017, 10:43 PM
    Hi guys. I am playing with subscriptions and I am experiencing some delays from the back-end responses to the client. Is it the same for some of you? I am using the Free Plan. Could it be for that? Thanks.
    s
    • 2
    • 2
  • e

    eder

    08/16/2017, 10:59 PM
    Hi to everybody 🙂
    👋 1
    👍 1
  • j

    justinrich

    08/16/2017, 11:12 PM
    Can anybody suggest how I can query data and filter out information based on properties of the result
  • j

    justinrich

    08/16/2017, 11:12 PM
    Ideally I’d like to do it in one call
  • j

    justinrich

    08/16/2017, 11:13 PM
    for example if I’m pulling all posts from a blog I’d like to filter out all posts made by the requesting user
    m
    • 2
    • 2
  • i

    ihatenonoildressing

    08/17/2017, 6:58 AM
    hello
    👋 1
  • a

    anton-b

    08/17/2017, 7:15 AM
    hello @ihatenonoildressing and @eder
  • i

    ihatenonoildressing

    08/17/2017, 7:16 AM
    do you have any sample of ionic graphcool, apollo?
  • i

    ihatenonoildressing

    08/17/2017, 7:16 AM
    sample app, or tutorial
  • i

    ihatenonoildressing

    08/17/2017, 7:16 AM
    hello, nice to meet you
  • i

    ihatenonoildressing

    08/17/2017, 7:31 AM
    and I have a question, can I use by Ruby on Rails?
  • m

    matty

    08/17/2017, 8:03 AM
    #lazyweb - when a node is deleted, and a SSS function is triggered, is there a way to find out what the ID of a related node is/was?
    n
    • 2
    • 2
  • m

    matty

    08/17/2017, 8:23 AM
    e.g. if I have a Product with connected Reviews, and one of those Reviews is deleted, how do I know which Product's average review score needs to be re-calculated?
  • y

    yakupad

    08/17/2017, 8:24 AM
    Hi can you throw me the update example in the add-on delete list in the react-native
    n
    • 2
    • 1
  • m

    matty

    08/17/2017, 9:15 AM
    I can't seem to find the part of the docs where it mentions which packages can be required in a graphcool function
    n
    • 2
    • 2
  • m

    matty

    08/17/2017, 9:16 AM
    oh - just noticed any npm module can be imported, thats new! 🙂
    🎉 3
    👍 1
  • s

    Stefan

    08/17/2017, 9:43 AM
    Hey can i use your chromeless-stack on functions?
  • m

    matty

    08/17/2017, 10:05 AM
    Writing a request pipeline function, and the example event on the left has
    event.context.headers
    , but when I try to read this in my function it throws an error
  • m

    matty

    08/17/2017, 10:05 AM
    either I'm doing something wrong, or the example event shouldn't have the
    context.headers
    path?
  • d

    Daniel K.

    08/17/2017, 10:21 AM
    hey, is there a faster way how to switch all permissions to require authentication by default? do I really have to click on every one of them to do it? that's rather annoying having 10+ types 😞
    n
    • 2
    • 2
  • m

    matty

    08/17/2017, 12:24 PM
    @Daniel K. i still have another 3 weeks to go until we launch, i have my fingers crossed that some amazing CLI tooling will be out before then 😉 ... otherwise only 2 environments are getting deployed haha
    d
    n
    • 3
    • 2
1...309310311...637Latest