Questions tagged as 'mongodb'

0
answers

findAll Query by example Spring Data MongoDB. I do not get all the results

I am using Spring Data MongoDB and I use the method findAll(Example example, Pageable pageable) of the QueryByExampleExecutor interface, to get all the entries in a collection. The problem is that I'm not receiving all the re...
asked by 21.01.2017 / 01:05
1
answer

Using Node, Express and Multer to upload a file to MongoDB? What should I use, Multer or GRIDfs?

Hi, I'm running a final project in Heroku using MongoLab and Multer to upload photos, it seems to work fine, but after a few hours or less the photos disappear from the page, but leave the img placeholder, the symbol appears when the browser can...
asked by 20.01.2017 / 18:10
1
answer

How to recover a Mongo binary with C #?

I have saved images in a Mongo collection and now I need to recover that binary, my collection is called photos. These are my advances: string conn = "mongodb://localhost"; var client= new MongoClient(conn); var server = client.GetSer...
asked by 11.01.2017 / 07:00
1
answer

How to return data from different models from Nodejs and MongoDD?

Good morning, I have a web application made in Nodejs, in one of the requests I must send data of different models. My query is as follows Is this the correct way? function getProduct (req, res) { let productId = req.params.productId Produ...
asked by 03.02.2017 / 23:06
0
answers

PyQt, import class correctly

Again I was caught, in my slow progress with PyQt. Now I am with another example of connection with bbdd. The example is simple a QDialog, in which I have a button and pressing it inserts a record in a bodd Mongodb. The program I have divided in...
asked by 09.12.2016 / 02:13
1
answer

Count Array using Where statement in MongoDB and C #

in my collection Students I have an arrangement in MongoDB in the following way: "_id" : "fAFhzdtJ7wpJbdfbp", "Nombre" : "Rastalovely", "Materias" : [ "ZNumksY9STZxc8a8W", "W6BPzEwTaz9E7FxZB" ] The Matters field has a relationship...
asked by 04.01.2017 / 08:26
1
answer

MongoDB order by

practicing with mongo I have a collection {     "_id" : "158748",     "data" : {         "1" : {             "tem" : 0,             "sal" : 0,         },         "3" : {             "tem" : 0,             "sal" : 0,         },          ...
asked by 20.11.2016 / 11:01
1
answer

Pymongo, data recording order in mongodb

I am using the pymongo module, to record data in a mongodb collection. But, when I go to review the data, I find that they are not recorded in the order in which I wrote them. If I insert them directly from the mongodb shell, there are no proble...
asked by 11.12.2016 / 16:16
2
answers

How to connect MeteorJs with remote MongoDB?

Hi everyone, I have my MeteorJS App that connects to your database, but I need to connect it to my Robomongo external, that is my MongoDB strong> runs on a different port Some advances: in my windows console: MONGO_URL=mongodb://12...
asked by 01.11.2016 / 23:55
2
answers

SELECT WHERE in MongoDB and C #

I have a question about MongoDB and C #, I need to filter the searches by an employee's name, that is, you put your name in a text box and if it exists the data is displayed in DataGrid . These are my advances: public class Entity {...
asked by 13.10.2016 / 18:38