max
03/05/2018, 12:09 PMvote(id)
? Also try changing variables(){
return{
id: this.voteId
}
}
max
03/05/2018, 12:09 PMvariables: { id }
Maxime Scibetta
03/05/2018, 12:13 PMMaxime Scibetta
03/05/2018, 12:13 PMapollo: {
projects:{
query: MY_QUERY,
update(data){
// my code
}
}
}
obligatory do this ->
methods: {
get(){
client.query({
query: GET_PROJECTS,
}).then(result => {
this.projects = result.data.projects;
})
},
},
created(){
this.get()
}
max
03/05/2018, 12:21 PMclient
needs a variables
object with the necessary arguments. I've never seen a function being used like that. you could try variables: () => {return {id: this.voteId}}
but not sure why you would do that over variables: { id }
max
03/05/2018, 12:21 PM