Relative Content

Tag Archive for javascriptreactjsmongodbnext.js

Get MongoDB Stream Real Time data in the front facing

I am trying to get the my MongoDB Atlas changes updated in real time in the front user facing. I am trying to implement the Mongo Change Stream functions. I am able to get the changes in my file but not sure how I will pass those changes to the front-end page.
Inside my Mongodb Stream file I am already getting the changes from MongoDB, all changes are being showing on that “change” inside the “for while”. I just need to know how I can pass that to the front facing part. If someone could help me on that, I tried some stuff but nothing worked there.

Unable to get sorted Projects in NextJS/MongoDB project

I get the following status codes in the terminal with my code but do not understand why. Here is the code. I believe it may be an issue with the folder structure but I am not sure. I have debugged and see no issues with any values be undefined, and see no such errors in terminal. I get these status codes also: