reactjs - GraphQL 错误:在 SimplSchema 上将循环结构转换为 JSON
问题描述
每当一个变量不符合简单模式中的验证标准时,这个错误就会在发出请求时从后端出现在前端,我无法弄清楚为什么会发生这种情况。为什么我没有得到导致此错误的变量。
Error: GraphQL error: Converting circular structure to JSON
--> starting at object with constructor 'ValidationContext'
| property '_simpleSchema' -> object with constructor 'SimpleSchema'
| property '_validationContexts' -> object with constructor 'Object'
--- property 'default' closes the circle
at new ApolloError (ApolloError.ts:46)
at Object.next (QueryManager.ts:225)
at notifySubscription (Observable.js:135)
at onNotify (Observable.js:179)
at SubscriptionObserver.next (Observable.js:235)
at observables.ts:12
at Set.forEach (<anonymous>)
at Object.next (observables.ts:12)
at notifySubscription (Observable.js:135)
at onNotify (Observable.js:179)
at SubscriptionObserver.next (Observable.js:235)
at index.js:147
解决方案
推荐阅读
- python - 使用根据数据排序的标签创建数据框
- scala - Scala - 字符串和列对象
- powerbi - SSAS表格/分析服务多币种输入多对多-多币种输出
- php - 如何在 PHP 中的 JSON 响应中编码日期,例如“/Date(1365004652303-0500)/”?
- python - 具有同步下拉菜单的多页 Dash 应用程序不起作用
- python - 从 requirements.txt 安装 PyTorch
- android-studio - 包名称更改后 Admob 广告未显示
- rust - 线程 'main' 在 'Err' 值上调用 'Result::unwrap()' 时惊慌失措:UrlRequest(Error(Url(RelativeUrlWithoutBase)))', src\libcore\result.rs:1165:5
- rocksdb - 每当我在rocksdb中为同一个键输入值时,值都会更新并且计数也会增加
- vue.js - 为什么在render函数中参数h是这样调用的?