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

    be4r

    06/27/2017, 4:53 PM
    i am querying user through option fetchPolicy: ‘network-only’ but the data.user is always returning null if i refresh, then the user does show. How can I make my react component always get from db and not cache?
    f
    n
    • 3
    • 22
  • m

    monceef

    06/27/2017, 6:00 PM
    hey GraphCool
    🦜 1
    graphcool 1
    🙌 1
    n
    • 2
    • 1
  • m

    monceef

    06/27/2017, 6:03 PM
    Do I need apollo for my project ?
    n
    • 2
    • 8
  • m

    marinm26

    06/27/2017, 6:48 PM
    I used graphcool first time at ReactRiot this weekend. 👍👍
  • m

    marinm26

    06/27/2017, 6:48 PM
    Now I want to use it everywhere 😂
    🦜 4
    🎉 6
  • a

    apedraza

    06/27/2017, 8:50 PM
    I have two questions: 1) Is there some way to retry a function in case of failure? 2) Regarding to the delay, What is more performance: a webhook or a function?
    a
    • 2
    • 2
  • a

    agartha

    06/27/2017, 9:19 PM
    Two questions about permission setup: Q: If I set up a permission allowing authenticated users to only see their 'own' nodes on a Type, can I only access this collection through the user query? The allXXX query doesn't give any results anymore. Q: If I have an object hierarchy, 3 layers deep (let's say a House, has Rooms, has Cupboards, has Items) and I want to set permissions on reading all of those rooms, cupboards and items based on being the owner of the House (House has User field), do I have to write permission queries with increased complexity for House, Room, Cupboard and Item, or am I missing something easy here?
  • v

    visualbbasic

    06/27/2017, 10:58 PM
    hey does anyone have any examples of using Client Side Schema (Redux and Flux replacement) in Relay Modern?
  • m

    martin

    06/27/2017, 11:03 PM
    Might anyone have some insights into the asynchronous nature of graphcool
    mutations
    ? For example, inside my React app, I’m calling:
    Copy code
    this.props.createConnection()
    	.then(connection => {
    		this.props.assignUserToConnection({ variables: { connectionId: connection.data.createConnection.id, userId: this.props.state.user.id } })
    			.then(() => { ...
    If I update the global state inside the React app after this snippet, and such updating triggers a graphcool query of the type
    Connection
    in a parent component, then that query should query the latest
    Connection
    nodes—the one added in the snippet above, no? Somehow it doesn’t do that. Updating the global state does trigger the graphcool query, but it just returns the previous nodes, before
    Copy code
    this.props.createConnection()...
    n
    • 2
    • 23
  • b

    bramski

    06/27/2017, 11:17 PM
    Hello, I'm trying to run: https://github.com/graphcool-examples/react-native-graphql/tree/master/authentication-with-expo-and-auth0 I've gotten to the last step to run the app and I'm getting the following error:
    Copy code
    Warning: Failed prop type: The prop `onRequestClose` is marked as required in `Modal`, but its value is `undefined`.
        in Modal (at PostListView.js:112)
        in PostListView (created by Apollo(PostListView))
        in Apollo(PostListView) (created by Apollo(Apollo(PostListView)))
        in Apollo(Apollo(PostListView)) (created by Apollo(Apollo(Apollo(PostListView))))
        in Apollo(Apollo(Apollo(PostListView))) (at ExNavigationComponents.js:168)
        in WithNavigation(Apollo(Apollo(Apollo(PostListView)))) (at ExNavigationComponents.js:272)
        in FocusableComponent (at ExNavigationComponents.js:168)
  • b

    bramski

    06/27/2017, 11:17 PM
    anybody seen this?
  • b

    bramski

    06/27/2017, 11:45 PM
    hmm, seems like I fixed that.
  • b

    bramski

    06/27/2017, 11:46 PM
    but the redirect doesn't work. I redirect through auth0 and then expo just reopens the app with the initial uri and I never get the token
    a
    n
    • 3
    • 24
  • k

    komondor

    06/28/2017, 1:44 AM
    Wondering if I can use graphql-tag with graphql-request. thank !
  • k

    komondor

    06/28/2017, 1:45 AM
    prettier 1.5.0 allows graphql formatting but only if it is wrapped with gql , graphql and graphql.experimental
    a
    • 2
    • 4
  • t

    threesleepingbeauties

    06/28/2017, 7:24 AM
    Having internal server error: Request ID: cj4gocsc30ufk0194va5u31aj
    n
    • 2
    • 2
  • y

    yolen

    06/28/2017, 8:58 AM
    I got this error during the creation of a new algolia index
  • y

    yolen

    06/28/2017, 8:59 AM
    In other words I thought that I copied the error, but it seems impossible to copy the error messages that pop up for some reason
    n
    • 2
    • 2
  • a

    agartha

    06/28/2017, 11:08 AM
    Sorry for the repost. First Q is a bit blocking atm... Second isn't.
    n
    • 2
    • 8
  • d

    dgotty

    06/28/2017, 12:33 PM
    hey everyone
    n
    • 2
    • 1
  • y

    yolen

    06/28/2017, 1:18 PM
    once enabled hot do you disable an integration(specifically Algolia)?
  • l

    louis

    06/28/2017, 2:07 PM
    Hey everyone, short question: Do I have to kick out the datafields of my filter necessarily or is there some kind of a wildcard-character? e.g. turning this:
    Copy code
    allTests(filter: {
        something: "d-de 9123",
      })
    into this:
    Copy code
    allTests(filter: {
        something: "d-de 9123",
        something_else: *wildcard
      })
    n
    • 2
    • 3
  • q

    quadsurf

    06/28/2017, 3:17 PM
    can any one pls tell me what's wrong with my nested filters? i just can't get the syntax right... i've already tried wrapping the child filters with curly braces, but that didn't work either
    -.js
  • n

    nilan

    06/28/2017, 3:17 PM
    @quadsurf you need to get rid of the nested
    filter:
    q
    • 2
    • 14
  • q

    quadsurf

    06/28/2017, 3:19 PM
    okay here's what removing the nested filter looks like, but it still doesn't work
    -.js
  • a

    allpwrfulroot

    06/28/2017, 3:33 PM
    Similar question: If I try to add a filter so that my chat window is only receiving new Messages with a certain chat ID, it breaks (silently):
    Copy code
    const MessageSubscription = gql`
      subscription newMessages($chatId: ID) {
        Message(
          filter: {
            AND: [{
              mutation_in: [CREATED]
            },{
              node: {
                chat: {
                  id: $chatId
                }
              }
            }]
          }
        ) {
          node {
            id
            authorId
            content
            createdAt
          }
        }
      }
    `
    n
    • 2
    • 20
  • n

    nilan

    06/28/2017, 3:50 PM
  • n

    nilan

    06/28/2017, 3:51 PM
    @quadsurf I used the playground hints to understand what's going on. maybe that can be useful in the future 🙂
  • n

    nilan

    06/28/2017, 3:51 PM
    the error message is not 100% helpful though... 😛
  • q

    quadsurf

    06/28/2017, 3:53 PM
    @nilan in your screenshot above, the hint tooltip is cut off... prolly no biggie in this example, but there have been other times it was obvious that valuable error info was cut off due to the fixed width of the hint tooltip
    n
    • 2
    • 1
1...248249250...637Latest