I'm new to mongo with a query with select / query.
I need to do a query that searches the base yoda and the collection configuracoes to return all documents that have the tipoRecibo key with the value equal to gps .
I know I ha...
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 need to do a find on my mongo by similarity example
[
{
"nome" : "Erick",
"codigo" : 1,
"periodos" : 10
},
{
"nome" : "Erica",
"codigo" : 1,
"periodos" : 10
},
{
"nome" : "Arthur",
"codigo" : 2,
"periodos"...
I'm developing a JS system with Node server and need to save images in MongoDB in a way that saves as much space as possible, and I'm currently converting the image to Base64 String and saving as an attribute of a document in the collection.
B...
I have a function (in JavaScript) that compares 2 arrays:
let diferencas = [];
let numD = 0;
for (let a = 0; a < dados.length; a++) {
if (dados[a].idEmail === results[a].idEmail) {
console.log('Repetido!')...
Example, I have the following JSON:
{
Casa:'b32',
integrantes:{
pessoa: 'joao',
pessoa: 'Maria',
pessoa: 'Daniel'
}
}
When inserting into the database it stays this way.
Apparently it is overwrit...
I'm using MongoDB to do data persistence in my application, with NodeJS.
I make the call like this:
module.exports = function (app) {
var dbConfig = app.config.db;
return {
changeAccountStatus: function (request, response,...