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

    witek

    09/09/2017, 2:52 PM
    Hello! I've tried a few various ways to upload a file from iOS App, but I'm receiving http code 500 all the time. Can anybody help me?
  • p

    Pieter

    09/09/2017, 3:00 PM
    Any standard approach within graphcool to do
    LastSeen
    or
    OnlineStatus
    on users?
    🙏 1
  • a

    Aren Hovsepyan

    09/09/2017, 9:24 PM
    Hi Guys I have asked two questions on stackoverflow regarding apollo can someone help me with them 🙂?
  • a

    Aren Hovsepyan

    09/09/2017, 9:24 PM
    https://stackoverflow.com/questions/46134134/apollo-graphql-response-is-invisible-in-chrome-devtools
  • a

    Aren Hovsepyan

    09/09/2017, 9:24 PM
    https://stackoverflow.com/questions/46134158/graphql-parser-string-literal
  • a

    Aren Hovsepyan

    09/09/2017, 9:25 PM
    Thanks in advance
  • b

    be4r

    09/10/2017, 12:52 AM
    given we have a
    Card
    with a rating from a user, we would also like to store the average of the ratings. How can we update the average dynamically so that the average is updated on any
    createRating
    or
    updateRating
    mutations?
  • b

    be4r

    09/10/2017, 12:52 AM
    assuming multiple users are submitting their ratings
  • a

    anton-b

    09/10/2017, 1:55 AM
    I'm experiencing a weird issue when trying to access my staging application deployed on heroku, from mobile. I have
    /
    and
    /authenticate
    - if the user tries to access
    /
    without being authenticated, they will be redirected to
    /authenticate
    this works from Chrome on my mac and in iOS. However, I can't access
    /authenticate
    directly from iOS, then I get a 404, while it still works fine in Chrome.
    a
    • 2
    • 19
  • a

    anton-b

    09/10/2017, 1:59 AM
    these are my logs:
  • a

    anton-b

    09/10/2017, 1:59 AM
    Untitled.php
  • f

    Fred G

    09/10/2017, 10:15 AM
    hi !
  • f

    Fred G

    09/10/2017, 10:16 AM
    I cannot see any "Schema Extensions" in my "functions" page. do I need to be part of the beta for that ?
    d
    • 2
    • 3
  • p

    Pieter

    09/10/2017, 11:58 AM
    How d owe authenticate for subscriptions? do we pass in AuthToken like apollo says? http://dev.apollodata.com/react/subscriptions.html
    a
    • 2
    • 5
  • b

    Boris Henné

    09/10/2017, 7:03 PM
    hi, i would like to know if i can use isUnique on a relation ? and how plz?
    d
    n
    • 3
    • 4
  • a

    ameistad

    09/10/2017, 9:12 PM
    I'm trying to send an email when a user signs up. I tried the mailgun example from https://www.graph.cool/docs/reference/functions/server-side-subscriptions-ahlohd8ohn/ But when the function triggers i get this: "Call to https://wt-graphcool.it.auth0.com/api/run/cj6moe68l0dhw0178sb2qk2xc/cj7f8b37d001c01qpwiib0hys failed with status 400". I don't use Auth0 at all, anybody have a clue why this happens?
    a
    • 2
    • 13
  • k

    karolis

    09/10/2017, 10:52 PM
    Are there any CRUD graphQL/apollo/react tutorials out there? It's so anoying that they do not have full CRUD in their official tutorial @ https://www.howtographql.com/react-apollo I'm stuck with re-fetching data after update and delete function is performed. Have to manually refresh the page to see effect.
    a
    • 2
    • 2
  • b

    be4r

    09/11/2017, 12:05 AM
    i currently have users submit votes
    Vote
    on client side. I also have a small server that is subscribed to
    Vote
    create/update which then calculates the average into
    Rating
    . Client side runs the update/create
    Vote
    then refetches
    Rating
    . Server listens to the update/create and then updates the
    Rating
    . However, since I believe the refetch is happening before or in parallel to my service, the client side refetch is still displaying the old
    Rating
    . Does anyone have recommendations on how to tackle this?
    a
    • 2
    • 9
  • d

    Daniel K.

    09/11/2017, 9:43 AM
    Is it possible to test out subscriptions in playground somehow? When I hit play button, some purple dot is shown in tab, but no result is shown ... clicking again just shows error message "Cannot read property 'subscribe' of undefined"
    n
    • 2
    • 2
  • w

    witek

    09/11/2017, 11:34 AM
    Hi guys! I have been trying to upload an image for the past few days, and I have already lost a lot of time so if there is anyone who could tell me proper format to POST method from iOS. I have tried both traditional URLRequest, and using Alamofire... I get code 500 all of the times. I am pretty desperate at this point...
    âś… 1
    n
    a
    • 3
    • 5
  • f

    freddie-codogo

    09/11/2017, 11:36 AM
    Can directives like
    include
    and
    skip
    be used to conditionally execute mutations?
    a
    n
    • 3
    • 15
  • c

    claudio.rocha

    09/11/2017, 1:24 PM
    Guys, sorry for asking something so trivial, but I'm new @ Graphcool community and can't find the answer: installed via npm (
    npm install -g graphcool
    ), but can't run any graphcool command, Ubuntu says "zsh: command not found: graphcool". Do I need to setup any env. variable?
    a
    a
    • 3
    • 6
  • p

    panzupa

    09/11/2017, 3:24 PM
    Hi Guys, I've got a question. I know there are not cascade deletes in GraphCool/QL. However, I need to delete entity from database and other entity assigned to it. Can I do it in one mutation or I need to execute two separate mutations? Can I delete both when I know only ID of "parent" or I need child ID as well?
    a
    • 2
    • 2
  • f

    freddie-codogo

    09/11/2017, 4:47 PM
    Hi All, I've reduced my permission query down to litterally
    Copy code
    query  {
    	SomeModuleExists
    }
    and I'm still getting
    Insufficient permissions for this mutation
    errors, any idea what's going on?
    a
    n
    • 3
    • 3
  • j

    Jhony Reyes

    09/11/2017, 5:21 PM
    Hi everyone, could anyone help me? I have an expired_at field, and I want to send a value true when expired_at is greater than the date now, does anyone know how to do this?
    a
    • 2
    • 4
  • a

    agartha

    09/11/2017, 5:26 PM
    Heads up: there is a nice GraphQL meeting coming up in Amsterdam, The Netherlands next month, about how Bynder and KLM implemented GraphQL. More details here: https://www.meetup.com/Bynder-JS-Guild/events/242414878/?gj=co2&rv=co2
    👍 1
  • w

    witek

    09/11/2017, 5:42 PM
    Simple question, can you upload many files using one multipart form data request?
    a
    • 2
    • 1
  • w

    windkomo

    09/11/2017, 8:19 PM
    Hello, Regarding the
    Limitations
    paragraph from https://www.graph.cool/docs/reference/simple-api/filtering-by-field-xookaexai0 I’ve made a many to many relation linking
    Item
    and
    Tag
    . I want to keep items that have the “tag1” and “tag2", is something like this possible ?
    Copy code
    allItems(
        filter: {
            AND: [{
                tags_every: {
                    key: "tag1"
                }
            },  {
                tags_every: {
                    key: "tag2"
                }
            }]
        }) {
         id
         tags {
              key
         }
    }
  • w

    windkomo

    09/11/2017, 8:20 PM
    Ideally I wanted tags to be an array of string but it seems this is seems filtering scalars is not possible currently ?
    a
    z
    • 3
    • 17
  • d

    Daniel K.

    09/11/2017, 9:05 PM
    did anyone run into issues with authenticating subscriptions? regular query works, but same set of data through subscription is failing with
    Insufficient Permission
    (I have permissions set to require authentication) I have subscription client initialized like this
    Copy code
    const wsClient = new SubscriptionClient(ENDPOINT_SUBSCRIPTIONS, {
        reconnect: true,
        timeout: 30000,
        connectionParams() {
          if (authStore.authUser) {
            return { authToken: authStore.authUser.token }
          }
          return null
        },
      })
    However, the function is called once at the start of my app when I don't have token yet
    a
    • 2
    • 1
1...335336337...637Latest