-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does it support circular data structure? #4
Comments
Try wrapping composeWithDataLoader around composeWithMongoose.
|
+1 I am also seeing this issue. I have tried composeWithDataLoader(composeWithMongoose(TC)) but it still throws the error |
I had the same issue and I solved it this way: |
@Marcvander 👍 |
November 2019, this still happens. Doing the json-stringify-safe trick works, but of course is not the preferred solution... Any signs on this? |
Suppose
Teacher mongoose model has students list,
but each student can be teacher of anyone, including the current teacher.
If I use composeWithMongoose and composeWithDataLoader, and create one teacher and search for one teacher using getResolver("findOne"),
it is throwing error, citing JSON.stringify does not support circular structure. If I do not use composeWithDataLoader, circular structure is working and is supported.
The text was updated successfully, but these errors were encountered: