I need to sum the values stored in a variable in the database.
I have a form and I want to know the total value generated in a variable.
Then I did the following:
_.each(cliente.data, function (data) {
fo...
I tried connecting to the bank using these settings;
'use strict'
var mongoose = require('mongoose');
mongoose.Promise = global.Promise;
mongoose.connect('mongodb://127.0.0.1:27017/ep', { useMongoClient: true })
.then(() => {...
I'm using nodejs, mongoose.
No controllers at the end I give res.json(clientes);
and in my route I create: app.get('/clientesjson/:id', isLoggedIn, cliente.clientesjson);
I need to access my Json information by ID. In the cu...
I need to generate a Json file that will feed a graphic. I need to load the following information. I have a form that receives date (dd / mm / yyyy).
My chart shows the number of visits per year x month.
I make the following conference in...
I have two models in my bd
user.js
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var bcrypt = require('bcrypt');
// User Model
var UserSchema = new Schema({
name: {
type: String,
unique: tru...
I have the following question:
I have a database in mongoDB, I do the search of the data by NodeJS it returns me all right, however I would like to play this search value for a variable, to make a comparison. Type I search the date in DB and wou...