Hey guys someone have an idea why he doesn't works...
# prisma-whats-new
m
Hey guys someone have an idea why he doesn't works ....

https://puu.sh/zB2j1/8f584f7fef.png

Copy code
voted(id){
      this.voteId = id;
      console.log(this.voteId)
      client.query({
        query: PROJECT,
        variables(){
          return{
            id: this.voteId
            
          }
        },
        update(data){
        }

      })
    }
Copy code
import { gql } from 'apollo-boost';

export const PROJECT = gql `
    query project($id: ID!){
        project(where: {id: $id}){
            id
            name
            voted
        }
    }
`