graphql - 中继 ConnectionHandler.getConnectionID() 连接不存在错误
问题描述
我正在尝试清理我的应用程序中的中继 graphql 流。Atm 在某些地方我仍在使用 fetchKey 和记录失效,我想将其更改为 @appendEdge/@appendNode 指令。不幸的是,每次我试图获得要使用它们的正确连接时,最终都会出现警告说明:
Warning: [Relay][Mutation] The connection with id 'client:ParentType14nif3uirdfut431431hg2rr:__ParentTypeChildrenList_children_connection' doesn't exist.
我正在使用ConnectionHandler.getConnectionID(<id of the parent object of the fragment>, <connection key I've specified>)
.
有谁知道这里可能是什么问题?此外,如果我理解正确并且如果这有效,我的边缘应该被添加到商店和中继将只确定一切是否是最新的,而不从服务器获取新的边缘,对吧?
解决方案
推荐阅读
- c# - .NET Core Web API - 如何从 ActionResult 获取响应信息
- javascript - 如何在下拉反应js中存储多个数据
- c# - 如何将 Json 响应转换为 C# 对象?
- python - 为什么 PySpark Groupby 花了这么长时间?
- wordpress - Woocommerce 如何单击按钮添加到购物车和结帐?
- php - 问题通知:尝试访问 null 类型值的数组偏移量
- node.js - 在 nodejs google sheet v4 中获取凭证
- swift - 如何在队列播放器的 currentItem 上设置观察者?
- reportportal - 缺少工件 com.epam.reportportal:agent-java-cucumber5:pom:0.0.1
- javascript - 如何使用 fetch() api 的响应