complete-node-bootcamp | Starter files , final projects | Runtime Evironment library
kandi X-RAY | complete-node-bootcamp Summary
kandi X-RAY | complete-node-bootcamp Summary
Starter files, final projects and FAQ for my Complete Node.js Bootcamp
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- invoke generator .
- Evaluate the delegate .
- Creates an async iterator .
- Pack an EBI byte value .
- find a require module and return it
- Calls the given generator and returns it .
- Returns next value in iterable .
- Get substitution code .
- Flattens the source into a target array .
- check if bundle is present in bundle
complete-node-bootcamp Key Features
complete-node-bootcamp Examples and Code Snippets
Community Discussions
Trending Discussions on complete-node-bootcamp
QUESTION
I'm learning back-end web development and the course I'm following includes making a REST API for a system that has "tours". I use MongoDB and Mongoose and everything was fine, I was filtering the query according to the parameters and that went well. But then the instructor wanted to put this filtering process (and other query processes) into a class and access them inside this class. After I've done this, I started getting this error. So I know that you can't convert a circular object to JSON, nor can you stringify such an object. But I don't have any... circular objects. Or at least I don't think so. I'm just a beginner, so forgive my mistakes if you will. Here's the code:
...ANSWER
Answered 2021-Dec-27 at 20:49The error suggests the problem is in tourController.js
on line 84. I guess you are calling JSON.stringify
on something that is circular on that line. Try removing that JSON.stringify
call.
It seems tours
is most likely the problem then. I see it is a QueryModifier
. I suppose that is probably not the data
you want to return from getAllTours
.
You should await the features.query
, not the features
itself.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install complete-node-bootcamp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page