Maxime Scibetta
03/05/2018, 12:05 PMhttps://puu.sh/zB2j1/8f584f7fef.png▾
voted(id){
this.voteId = id;
console.log(this.voteId)
client.query({
query: PROJECT,
variables(){
return{
id: this.voteId
}
},
update(data){
}
})
}
import { gql } from 'apollo-boost';
export const PROJECT = gql `
query project($id: ID!){
project(where: {id: $id}){
id
name
voted
}
}
`