I have to load an array of data points. Each point have some properties. These are loaded and attached to point as property of object. Then send response back as array of points. But when the response arrives at the client, one of the property attached to each point does not arrive with response.
Router:
1. ActivityDBRouter.get('/activityDB', (req, res) => {
2. const filter = req.query.filter;
3. const month = req.query.month;
4. try {
5. getActivityDB(filter, month, (err, db) => {
6. if (err) {
7. throw err;
8. } else {
9. res.json(db);
10. }
11. });
12. } catch(err) {
13. res.status(500).end();
14. }
15. });
When debugged, at line 9. I can see that property seasonValue
attached to each point. But when response would arrive at client. That propery would be missing.