Questions tagged as 'mongodb'

0
answers

Upload MongoDB upload

I'm using MongoDB in a Docker container to import data from Jenkins, and that data exceeds MongoDB's upload capacity of 16MB, I was wondering if it's possible to increase that capacity.     
asked by 26.07.2018 / 21:04
2
answers

sort numeric data mongodb

I'm trying to sort numeric data with a field set to number in the collection and sorting does not show as I need it. Example: 1,2,3,10 after ordering the result presented: 1,10,2,3. How to modify the result? I'm using the command: var itgrpdad...
asked by 25.07.2018 / 17:23
0
answers

How to use save in Node js?

I'm having a study project using Node JS with MongoDB and I'm having a hard time saving a record in the database, I'm using the method that way. function postRestaurant (req, res) { var restaurants = new Restaurants(req.body); restaura...
asked by 24.07.2018 / 17:04
1
answer

PHP + Mongo: Can not create SSL client

How do I connect to a Mongo + SRV DB? $manager = new MongoDB\Driver\Manager('mongodb+srv://username:[email protected]'); Error:    Fatal error: Uncaught exception 'MongoDB \ Driver \ Exception \ InvalidArgumentException...
asked by 19.07.2018 / 03:21
0
answers

MongoDB - What are pipelines and how to work with them?

I'm working with MongoDB, but I'm having a hard time understanding the concept of pipelines.     
asked by 18.07.2018 / 22:39
0
answers

Paste log next and previous MongoDB

I have a endpoint that returns all the data of a post , but I would like to get information from the next record and the previous one to have two buttons ( Anterior and Proximo ). My current query is like this route...
asked by 16.07.2018 / 20:18
0
answers

Is it possible to save document rum after removing it using a middleware in Mongoose?

I'm developing a system that requires some MongoDB documents to be kept in a database even if they have been removed, for historical purposes, so I created a plugin that inserts 3 fields: criadoEm atualizadoEm apagadoEm...
asked by 16.07.2018 / 21:06
0
answers

Using two connections with MongoDB using Mongoose with references to different collections

I have two MongoDB databases that I connect using Mongoose on NodeJS, one with an X collection that references the ID of another collection Y that is in another MongoDB database on another server. I need to unify the two databases by copying...
asked by 17.07.2018 / 00:16
0
answers

Show complex objects in TD of a table

I have this table <div class="container"> <div class="row"> <div class="col-md-12"> <table class="table table-striped table-bordered"> <caption>Lista de Aplicabilidades</caption>...
asked by 25.07.2018 / 13:42
0
answers

Collections that are listed and others not on Node Express

I have created some applications in Node Express, and lately my projects have had strange behaviors, for example, I have used a certain method to list the records of my collection in MongoDB, and at another time I use the same algorithm to list...
asked by 12.07.2018 / 12:38