【发布时间】:2021-05-20 11:47:58
【问题描述】:
我正在使用 apollo 和 Vuejs 的突变来从我的日历中删除一个事件的条目。我需要在数组中检索事件 id。
deleteEvent: function () {
this.$apollo
.mutate({
mutation: MUTATION_entreePlanningDelete,
variable: {
id: this.id,
},
})
.then((data) => {
console.log(data);
});
},
在这个函数中我呼吁突变请求。
这是我的数组(这个名字:evenements),我们可以看到 id。你能告诉我如何找回它吗?
【问题讨论】:
标签: vue.js vue-apollo