Use new follow mutation

This commit is contained in:
Grzegorz Leoniec 2019-03-05 11:21:19 +01:00
parent c40f6521d1
commit dc13467294
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -33,17 +33,12 @@ export default {
this.$apollo
.mutate({
mutation: gql`
mutation($myId: ID!, $followId: ID!) {
AddUserFollowing(from: { id: $myId }, to: { id: $followId }) {
from {
id
}
}
mutation($id: ID!) {
follow(id: $id)
}
`,
variables: {
myId: this.$store.getters['auth/user'].id,
followId: this.followId
id: this.followId
}
})
.then(() => {