be4r
06/27/2017, 4:53 PMmonceef
06/27/2017, 6:00 PMmonceef
06/27/2017, 6:03 PMmarinm26
06/27/2017, 6:48 PMmarinm26
06/27/2017, 6:48 PMapedraza
06/27/2017, 8:50 PMagartha
06/27/2017, 9:19 PMvisualbbasic
06/27/2017, 10:58 PMmartin
06/27/2017, 11:03 PMmutations
? For example, inside my React app, I’m calling:
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 this.props.createConnection()...
bramski
06/27/2017, 11:17 PMWarning: 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)
bramski
06/27/2017, 11:17 PMbramski
06/27/2017, 11:45 PMbramski
06/27/2017, 11:46 PMkomondor
06/28/2017, 1:44 AMkomondor
06/28/2017, 1:45 AMthreesleepingbeauties
06/28/2017, 7:24 AMyolen
06/28/2017, 8:58 AMyolen
06/28/2017, 8:59 AMagartha
06/28/2017, 11:08 AMdgotty
06/28/2017, 12:33 PMyolen
06/28/2017, 1:18 PMlouis
06/28/2017, 2:07 PMallTests(filter: {
something: "d-de 9123",
})
into this:
allTests(filter: {
something: "d-de 9123",
something_else: *wildcard
})
quadsurf
06/28/2017, 3:17 PMnilan
06/28/2017, 3:17 PMfilter:
quadsurf
06/28/2017, 3:19 PMallpwrfulroot
06/28/2017, 3:33 PMconst MessageSubscription = gql`
subscription newMessages($chatId: ID) {
Message(
filter: {
AND: [{
mutation_in: [CREATED]
},{
node: {
chat: {
id: $chatId
}
}
}]
}
) {
node {
id
authorId
content
createdAt
}
}
}
`
nilan
06/28/2017, 3:50 PMnilan
06/28/2017, 3:51 PMnilan
06/28/2017, 3:51 PMquadsurf
06/28/2017, 3:53 PM