I'm now starting with Node and I used Mongoose to make my database connections to MongoDB.
I put 1 log in my application, every time I open the connection it will print in this log.
What happens:
Every time someone calls my URL, my Node appli...
I have JSON in this format:
{
"1": {
"cidade":"cidade1",
"name":"nome1"
},
"2": {
"cidade":"cidade2",
"name":"nome2"
}
}
I need to filter the data from this json. For this I made a model.js
var mongoose = req...
I'm trying to retrieve a document in my Database using Mongoose in Node.js but it always returns Null.
My problem before was the asynchronous method, but now everything is running inside it. And I'm just trying to print the recovered document fr...
Good afternoon guys,
I was developing an api with node and mongo using express and mongoose and tried to implement the pattern repository, but when accessing the attributes of a class it returns an undefined message that I do not know the reason...
As the title says, I'm having a hard time making a find() customized in the model / schema of the node, which links to the mongoose.
My following correspondence.js file (model):
var mongoose = require('mongoose');
var Correspo...
Is it possible to populate a list that references another list in the same document? Example in the image below, I want to popular / return in a search always the access link referring to another list of links that has all the information. This...
Today when I was performing the post from a larger base 64 is returning this from my server. When uploading a smaller image it sends without problems, I tried to use some solutions limiting the server to 50mb but it did not work.
server.use(bo...
Whenever I make a change in my Schema I have to restart my mongo server or node for the changes to take effect.
I'm using the nodemon, but it does not always update, has anyone ever had it?
module.exports = function(app){
var Schema = r...
Good evening!
I'm starting to study KeystoneJS versão 0.3.17 . Following "Getting started" from the official website, we ask for nodejs and mongodb , but I want to use this cloud service from mongodb .
How could you do this...
With a very big question, I have a function that does calculations of user metrics and I want to put it in an express function to be able to return a JSON and use it in a route, follow the code to use in the routes: / p>
const calculate_followe...