Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs GraphQL错误:在SimpleSchema上将循环结构转换为JSON_Reactjs_Mongodb_Graphql_Next.js_Apollo - Fatal编程技术网

Reactjs GraphQL错误:在SimpleSchema上将循环结构转换为JSON

Reactjs GraphQL错误:在SimpleSchema上将循环结构转换为JSON,reactjs,mongodb,graphql,next.js,apollo,Reactjs,Mongodb,Graphql,Next.js,Apollo,每当一个变量不符合简单模式中的验证标准时,当请求发出时,这个错误就会从后端出现在前端,我不明白为什么会发生这种情况。为什么不获取导致此错误的变量 Error: GraphQL error: Converting circular structure to JSON --> starting at object with constructor 'ValidationContext' | property '_simpleSchema' -> object with const

每当一个变量不符合简单模式中的验证标准时,当请求发出时,这个错误就会从后端出现在前端,我不明白为什么会发生这种情况。为什么不获取导致此错误的变量

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
Error:GraphQL错误:将循环结构转换为JSON
-->从构造函数为“ValidationContext”的对象开始
|属性'\u simpleSchema'->具有构造函数'simpleSchema'的对象
|属性'\u validationContexts'->具有构造函数'object'的对象
---属性“default”关闭圆
新阿波罗错误时(阿波罗错误ts:46)
在Object.next(QueryManager.ts:225)
在订阅时(Observable.js:135)
在onNotify(可观察到,js:179)
在SubscriptionObserver.next(Observable.js:235)
在可观察到的情况下。ts:12
在Set.forEach()处
在Object.next(可观察到的ts:12)
在订阅时(Observable.js:135)
在onNotify(可观察到,js:179)
在SubscriptionObserver.next(Observable.js:235)
索引js:147

Hi,我们需要有关数据和模式的更多详细信息