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

    samjbmason

    07/09/2017, 5:37 PM
    Does anyone know if there is a way to do a similar nested mutation that would involve finding or uodating a record from a model.
    n
    • 2
    • 1
  • a

    auser

    07/09/2017, 8:10 PM
    holla all
  • a

    auser

    07/09/2017, 8:12 PM
    is it possible to get the value of a related object in request pipeline functions?
    n
    • 2
    • 2
  • s

    samjbmason

    07/09/2017, 8:48 PM
    Is it possible to only fire a query after a form is submitted rather than on page load
  • s

    samjbmason

    07/09/2017, 8:59 PM
    This would be using the graphql HOC
  • s

    samjbmason

    07/09/2017, 9:26 PM
    Im having real problems trying to fire a query conditionally, do queries always have to run on component mount?
    n
    • 2
    • 11
  • a

    auser

    07/10/2017, 3:10 AM
    Umm… is it possible to get the current user of a request in the request pipeline? Aka, the Authorization header?
  • a

    auser

    07/10/2017, 3:13 AM
    rather, in order to make this pipeline function, I need additional information (similar to the mutation query in a SSS) that I don’t have with just the raw object in the request (
    userId
    , for instance
    user: User @relation...
    )
    n
    • 2
    • 2
  • p

    phil

    07/10/2017, 4:19 AM
    Can you filter into JSON types?
    w
    • 2
    • 2
  • b

    briand

    07/10/2017, 4:30 AM
    Hi All, I was going through the
    authentication-with-auth0-and-apollo
    example and for some reason after I login with Auth0 I'm getting this error
    Copy code
    CreateUser.js:80 Error: GraphQL error: The provided idToken is invalid. Please see <https://auth0.com/docs/tokens/id_token> for how to obtain a valid idToken
        at new ApolloError (apollo.umd.js:1959)
        at apollo.umd.js:2670
        at <anonymous>
    pretty sure I followed the tutorial/setup video. Seems like I'm in an authentication loop where my user is not being created or pushed to graphcool. Any ideas? (probably a noob issue 😭)
    w
    n
    d
    • 4
    • 6
  • j

    jakelowen

    07/10/2017, 5:36 AM
    I am struggling to implement an example of a graphcool permission system query. I started with the
    authentication-with-auth0-and-apollo
    starter example. I then modified the schema such that every post has an “author” which is a relation to the user type. In the playground it works when I run a query like:
  • j

    jakelowen

    07/10/2017, 5:36 AM
    Copy code
    query{
      allPosts(
        orderBy: createdAt_DESC, 
        filter:{
          author: {
            id:"cj4uce21t4wmi0199950ia1ck"
          }
      	}
      ) {
        id
        imageUrl
        description
      }
    }
  • j

    jakelowen

    07/10/2017, 5:37 AM
    But when I attempt to write a permission query such that users can only view their own posts:
  • j

    jakelowen

    07/10/2017, 5:37 AM
  • j

    jakelowen

    07/10/2017, 5:38 AM
    This always leads to “Insufficient Permissions” error on the front end:
  • j

    jakelowen

    07/10/2017, 5:38 AM
  • j

    jakelowen

    07/10/2017, 5:39 AM
    Any idea what I am doing wrong here?
  • j

    jakelowen

    07/10/2017, 5:40 AM
    Side note.. If I turn off the “user permission query” and just use “authentication request” alone, it does load all posts, which leads me to believe authentication is working fine.
    m
    • 2
    • 5
  • s

    stton

    07/10/2017, 6:20 AM
    I am also running into an "Insufficient Permissions" error when trying to use subscriptions.. was workign fine until I messed with the permissions and updated them to authorized. I undid that but it is still giving me a "Insufficient Permissions" error with everything open
  • s

    stton

    07/10/2017, 6:24 AM
    deleting and recreating permission fixed for me
    n
    • 2
    • 1
  • a

    antho1404

    07/10/2017, 6:45 AM
    talking about permissions it would be really nice to have the possibility to save (and put on git) the permissions rules like that we can try some new things without being worried to break everything 🙂
    👍 1
  • a

    antho1404

    07/10/2017, 6:47 AM
    when doing the
    graphcool pull
    have a permission file and be able to push it back with a
    graphcool push
    🦜 2
  • m

    marcusstenbeck

    07/10/2017, 7:01 AM
    I’m using Redux in my app, and I’m having a dilemma. Say that I’ve signed in my user. I then have the option to either store the user info in another redux reducer (say
    auth
    ) or keep connecting via Apollo’s
    graphql()
    . I’m sure Apollo will have better caching behavior than my own code … so I feel like it would be duplicating data if I also keep track of it. This is just a sanity check for myself. What do you think?
    w
    • 2
    • 3
  • k

    katsgeorgeek

    07/10/2017, 7:13 AM
    Guys, I’m quite new with graph.cool, but I’ve faced one really not attractive problem for me. I’m using this product solely for development MVP (at least for now), but inability to manage my data through web ui slows me down to write own admin page. How to avoid it?
    m
    n
    • 3
    • 15
  • p

    ppatidar

    07/10/2017, 9:27 AM
    I'm getting error "NetworkError when attempting to fetch resource." on console
    ✅ 1
    m
    n
    • 3
    • 7
  • u

    12brols

    07/10/2017, 9:48 AM
    Hi people
    👋 3
  • u

    12brols

    07/10/2017, 9:51 AM
    Im really a beginner with graphql, just started with graphcool and got stuck with relationship. If got a User type and a Directive type, and a relationship between them:
    directives: [Directive!]! @relation(name: "UserOnDirective")
    I really don’t understand how to use this relation ship if i want to update the user with new directives. Can someone please give me a hint on how it works
    n
    • 2
    • 8
  • d

    dankent

    07/10/2017, 10:30 AM
    Is there any way to generate reference documentation for a graph.cool API? What I would like to see is a list of all of the top level queries, subscriptions and mutations that are possible along with the parameters that are supported on them.
    w
    n
    a
    • 4
    • 17
  • d

    dankent

    07/10/2017, 10:31 AM
    autocomplete in the playground is useful but it would be nice to have a reference
  • l

    lancej

    07/10/2017, 11:15 AM
    Is the Web console slow today for others?
1...261262263...637Latest