Javascript vue apollo fetchMore抛出错误:未捕获(承诺中)不变冲突:不变冲突:6

Javascript vue apollo fetchMore抛出错误:未捕获(承诺中)不变冲突:不变冲突:6,javascript,vue.js,vuejs2,vue-apollo,Javascript,Vue.js,Vuejs2,Vue Apollo,我已经实现了Vue Apollo文档中详述的“使用fetchMore进行分页”功能: 点击按钮获取更多结果时,fetchMore失败,并将以下错误记录到控制台:Uncaught(承诺中)不变冲突:不变冲突:6(请参阅https://github.com/apollographql/invariant-packages) ProductGrid.vue 从“../../graphql/GetProducts.query.gql”导入GetProductsQuery; 导出默认值{ 道具:[ ..

我已经实现了Vue Apollo文档中详述的“使用fetchMore进行分页”功能:

点击按钮获取更多结果时,fetchMore失败,并将以下错误记录到控制台:
Uncaught(承诺中)不变冲突:不变冲突:6(请参阅https://github.com/apollographql/invariant-packages)

ProductGrid.vue

从“../../graphql/GetProducts.query.gql”导入GetProductsQuery;
导出默认值{
道具:[
...
],
名称:“ProductGridResults”,
组件:{…},
数据(){
返回{
产品:[],
query:this.getQuery(),
游标:null,
错误:null,
showMoreEnabled:true
}
},
阿波罗:{
产品:{
查询:GetProductsQuery,
变量(){
返回{
游标:this.cursor,
query:this.query,
排序:“最畅销”,
反面:假
}
},
fetchPolicy:“仅限网络”,
notifyOnNetworkStatusChange:false
}
},
方法:{
//获得产品
getQuery(){
...
},
//显示更多
showMore(){
此。$apollo.queries.products.fetchMore({
//新变量
变数{
游标:this.cursor,
query:this.query,
排序:“最畅销”,
反面:假
},
updateQuery:(上一个结果,{fetchMoreResult})=>{
const hasNextPage=fetchmoresult.products.pageInfo.hasNextPage
this.showMoreEnabled=hasNextPage
//没有结果
如果(!fetchMoreResult)返回上一个结果
//Concat结果
返回{
产品:{
__typename:previousResult.products.\u typename,
边缘:[
…以前的result.products.edges,
…fetchMoreResult.products.Edge
],
页面信息:{
hasNextPage:hasNextPage
}
}
}
},
})
}
}
}

...
显示更多