Answer the question
In order to leave comments, you need to log in
How to get JSON data from MongoAtlas as an array to write it to a variable?
I have the following entries in the database:
How can I get them into a type variable like this:
(This is for an example, in general I want to use this array later with EJS for rendering and displaying on an HTML page, if this can be done in some other way too ideas are welcome)
I just don’t know how to load data from the database into an HTML page, and I still don’t understand anything from the mogoose and MongoDB documentation.
If you know good videos I will be grateful for the link.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question