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

    agartha

    07/18/2017, 10:23 PM
    There's batching and batching. Apollo batching means sending an array of queries/mutations to the server. Graphcool mutation batching is sending one mutation object, with multiple (aliased) mutations inside. Two totally different concepts.
    n
    • 2
    • 2
  • a

    agartha

    07/18/2017, 10:26 PM
    Here's a blog post for the Apollo batching with Graphcool: https://www.graph.cool/blog/improving-performance-with-apollo-query-batching-ligh7fmn38/
  • m

    mwickett

    07/18/2017, 11:11 PM
    So is there any reason not to use batching and deduping? Seems like a win.
  • a

    agartha

    07/18/2017, 11:18 PM
    There's an initial delay, because the client 'waits for more queries'. So if you don't expect that to happen, don't enable it, because it will slow the client down on individual queries.
    👍 1
    m
    n
    • 3
    • 4
  • a

    auser

    07/18/2017, 11:25 PM
    Is there a way we can send a virtual attribute on a mutation, i.e. I want to send a variable to a callback function that doesn’t exist on the actual model itself
  • m

    mike.johnson

    07/18/2017, 11:28 PM
    Is it possible to create relationships by adding nodeId to a request pipeline function? I'm adding
    event.data.userId = "my user id string"
    before returning
    {data: event.data}
    a
    a
    l
    • 4
    • 75
  • a

    auser

    07/18/2017, 11:30 PM
    I don’t think so, @mike.johnson
  • a

    auser

    07/18/2017, 11:31 PM
    If you find a way, let me know
  • d

    davemcorwin

    07/18/2017, 11:32 PM
    💥 https://github.com/graphcool/get-graphql-schema/pull/10
  • a

    auser

    07/18/2017, 11:36 PM
    anyone from graphcool, is there a way to send a virtual attribute with a mutation?
    a
    • 2
    • 36
  • c

    ckelley

    07/18/2017, 11:45 PM
    Would love to see the ability to use GraphQL variables within requests sent via
    graphcool-lib
    !
    ✅ 1
    a
    • 2
    • 7
  • a

    auser

    07/18/2017, 11:49 PM
    @graph.cool team: When are we getting custom mutations in GA?
    n
    • 2
    • 2
  • a

    auser

    07/19/2017, 12:45 AM
    @nilan is
    async/await
    supported yet?
    a
    n
    • 3
    • 32
  • j

    jshaver

    07/19/2017, 12:53 AM
    So if I'm subscribing to updates on a Type, do I get notified if one of that type gets a new edge added to a connection. (don't know if I'm using those terms correctly, new to graphql)
    a
    n
    • 3
    • 6
  • j

    jshaver

    07/19/2017, 12:54 AM
    I don't seem to be getting those messages, but I wanted to make sure it wasn't a mistake on my part.
  • j

    jshaver

    07/19/2017, 12:54 AM
    I don't see away to subscribe to updated connections
  • c

    ckelley

    07/19/2017, 1:52 AM
    Has anyone had success using a request pipeline function to update a one-to-many relation? I have a
    User
    type and I want to give them some default `Group`s (1:N relation) when they sign up. I have a `TRANSFORM_ARGUMENT `function that adds the
    groups
    property (I can see it in the return value in the logs), but it doesn't save to the database. I've tried sending an empty array during the
    create
    mutation to ensure the field is present, but it doesnt help. Any ideas?
    a
    • 2
    • 12
  • b

    be4r

    07/19/2017, 3:50 AM
    what is the url for apollo's slack channel?
  • d

    dankent

    07/19/2017, 8:49 AM
    Are there any more details about how the $input_scalar variable works in a type permission query? I want to base a permission query on a specific value that is used in the mutation and based on the docs, this looks like it's intended for that. However, there isn't an example or any details on how to specify which scalar input I am interested in
    n
    • 2
    • 16
  • b

    bogdan

    07/19/2017, 9:00 AM
    any ideas why the mutation createUser fails? it was working yesterday
  • n

    nilan

    07/19/2017, 9:01 AM
    hey @bogdan, did you add a new field to
    User
    in the meantime?
    b
    • 2
    • 8
  • n

    njust

    07/19/2017, 10:50 AM
    Hi! I'm creating a site for food recipes. Therefore I have a schema for recipes which looks like this: type Recipe implements Node { createdAt: DateTime! description: String id: ID! @isUnique ingredients: [RecipeIngredients!]! @relation(name: "RecipeIngredientOnRecipe") portions: Int @defaultValue(value: 2) title: String! updatedAt: DateTime! images: [RecipeImages!]! @relation(name: "RecipeImagesOnRecipe") owner: User @relation(name: "UserRecipes") tags: [Tag!]! @relation(name: "RecipeTags") } Now, when I update a recipe via the following mutation: mutation UpdateRecipe( $id: ID!, $title: String!, $portions: Int!, $description: String!, $tags: [ID!]!, $ingredients: [RecipeingredientsRecipeIngredients!]){ updateRecipe( id: $id title: $title, portions: $portions, description: $description, ingredients: $ingredients, tagsIds: $tags ){ id title portions description ingredients{ id amount unit ingredient{ id name } } tags{ id name } } } Variables: { "id": "cj58ht8m5el110151m51quuhu", "title": "My recipe title", "portions": 2, "description": "Recipe description ", "ingredients": [{ "ingredientId": "cj574t6n759at0100o6jsx0df", "unit": "Zehe(n)", "amount": 2111 } ], "tags": ["cj4yhsxuy4og70184e5a0timq", "cj58hsy23egkd0135n0reg5ty"] } I get a new record in the RecipeIngredient table. The "old" record remains but is updated with a null recipeId. Unfortunately I'm not able to include the recipeId in the "RecipeingredientsRecipeIngredients" type: amount: Int! unit: String ingredientId: ID ingredient: RecipeingredientsRecipeIngredientsingredientIngredient Any help is appreciated! Kind Regards Nico
    d
    n
    • 3
    • 45
  • h

    hiennv

    07/19/2017, 11:06 AM
    Hello, I'm trying to create my first demo data and I've saw this error
  • h

    hiennv

    07/19/2017, 11:06 AM
    Whoops. Looks like an internal server error. Please contact us from the Console (https://console.graph.cool)....
    d
    a
    • 3
    • 19
  • h

    hiennv

    07/19/2017, 11:06 AM
    anyone can help?
  • l

    leandros

    07/19/2017, 11:15 AM
    Hi, first thanks everyone for keeping this thread so informative. Any ideas/tips on how to structure schema and permission for a multi-tenant application?
    a
    • 2
    • 1
  • h

    hiennv

    07/19/2017, 11:17 AM
    is there anyone can help me?
  • h

    hiennv

    07/19/2017, 11:17 AM
    I'm very new in GraphQL
    ✅ 1
    n
    d
    • 3
    • 3
  • m

    mj

    07/19/2017, 11:46 AM
    any examples on how to do updateOrCreate with graph cool?
    n
    • 2
    • 2
  • s

    senorcodecat

    07/19/2017, 12:17 PM
    Yo! Anyone tried to use Zapier Webhooks? Having formatting errors with their custom request webhooks
    n
    • 2
    • 112
1...276277278...637Latest