I'm passing a query I made and it works on mongoDB to mongoose and it gives me an error.
The query in mongo DB is:
db.facturas.find({
_id: {$in: db.detalles.distinct("id_factura",{category: ObjectId("5889eae21ffcc6da2c6b4ae4")})}...
I'm doing an App, which has a registry for users. I try to make that when the user enters the data they are sent to the database through that POST request. The database appears connected to me, but I can not find the code to send the data.
Th...
Hello people, I am using passport-local and what I want to do is show the user when he / she does the login
My code is this
var passport = require('passport');
var localStrategy = require('passport-local').Strategy;
var User=require...
I have a structural dilemma for my application.
Currently I have an application consuming an API Rest made with Node and MongoDB. And I want to add the chat functionality. I was reading and I think the best option is to use the XMPP protocol for...
//myapp/routes/index.js
//declaramos las dependencias
var express = require('express');
var bodyParser = require('body-parser');
var mongoose = require('mongoose'),
Schema =mongoose.Schema;
var router = express.Router();
mongoose.co...
I am using C # and MongoDB as the database engine.
In my application I keep the User's Footprint used the following lines in C #.
var id3 = ObjectId.Empty;
using (var file = File.OpenRead(rutaArchivo))
{...
I just started with this backend and I have some doubts.
I have a Schema in Mongoose :
const mongoose = require('./model'),
Schema = mongoose.Schema,
TeamSchema = new Schema({
_id : Schema.Types.ObjectId,...
I have 2 models that I want to relate to be able to make queries in mongoose.
Users Model
import mongoose from 'mongoose'
const Schema = mongoose.Schema
let csvuaSchema = new Schema({
codigo: { type: 'String' },
georeferencia: { type:...
I'm doing a api rest where I want to do HTTP requests using Postman, specifically I want to do a search or update a mongodb document, but this must be by an id that is not the doc_id that mongo provides.
Basically what I need is for someone t...