Meteor with query on publication is not reactive

I have a problem with a meteor publication not being reactive when using a query inside it. Let's say I have many files, and each file has many projects, so I can go to the route: http://localhost:3000/file/:file_id/projects And I would like to ...
more »

2017-09-10 20:09 (1) Answers

Mongodb implications of update versus replace

I have read this related question, but the one below is different. The mongodb c# driver has a ReplaceOne method (& an async counterpart) on the document collection class, which can be used to replace the entire contents of a document that fits t...
more »

2017-09-05 21:09 (0) Answers

How to save selected Dropdown value in mongodb

I have created array in controller and used that value in dropdown in angularjs view controller : $scope.menus = ['Home','WorkFlow','Statistics','Users','Projects','Setting']; view: <select name="selectedRole" ng-model="selectedRole" ng-opt...
more »

2017-08-31 13:08 (3) Answers

Jongo 1.2 breaks tests using fongo

I have just upgraded to jongo version 1.2 and this seems to break my tests running in a fongo in memory db. When persisting data like {"beacons" : ["beacon-updated"]}. I get error: com.fasterxml.jackson.databind.JsonMappingException: Can not deseri...
more »

2017-08-29 17:08 (0) Answers

MongoDB recursive search (folder tree)

I have a collection of folder tree and I want to get children for folder. Here is my document structure {"_id":"1","metadata":{"parents":[]}} {"_id":"2","metadata":{"parents":["1"]}} {"_id":"3","metadata":{"parents":["2","1"]}} {"_id":"4","metada...
more »

2017-08-29 16:08 (1) Answers

Doing a 1:many:many join in mongodb

Thanks to everyone who has been of support to getting the first step of this puzzle solved especially @Gaëtan Rouziès and @Neil. On this thread, the code worked perfectly for the scenario in question. I want to adapt the same code for another simil...
more »

2017-08-28 00:08 (2) Answers

Problems establishing connection with DB

Platform: LINUX. I am a beginner of MongoDB and pymongo. After installing pymongo, here is a simple test I tried on ipython: import pymongo client = pymongo.MongoClient(); # Also tried to specify the local host and port number db = client['myDB'] ...
more »

2017-08-18 00:08 (1) Answers

convert mongoDB Collection to mySQL Database

I was created my project in spring 4 MVC + Hibernate with MongoDB. now, I have to convert it into the Hibernate with MySQL. my problem is I have too many collections in MongoDB the format of bson and json. how can I convert that file into MySQL table...
more »

2017-08-17 10:08 (2) Answers

Sort Mongodb data by price

Goal: I'm trying to find a way to let a user sort rentals by max and min price on the one index page. My problem is the only way I could figure out how to make it work was to create two separate pages specifically for lowprice and highprice. I want ...
more »

2017-08-06 02:08 (1) Answers

Insert streamed XML data database

I am trying to efficiently insert a lot of data (XML file is over 70GB in size) without crashing my MongoDB server. Currently this is what I am doing using xml-stream in NodeJS: var fs = require('fs'), path = require('path'), XmlStream = req...
more »

2017-08-06 00:08 (1) Answers

MongoDB/PHP: search for string with query

EDIT: I solved it. Just need to use "MongoDB\BSON\Regex". I'm storing books as documents in MongoDB, with the individual pages stored as strings in an array. I'm trying to implement a search page that can take a string and return all documents that ...
more »

2017-08-05 16:08 (1) Answers

Using ObjectID with jwt.sign() and verify()

Upon logging in to my system, I run the MongoDB _id of the logged in user through the jsonwebtoken's sign method. It returns to me a hash, which I then put into the session headers of every subsequent request that the client makes to my server. I no...
more »

2017-08-05 05:08 (1) Answers

map json nested object from mongodb to java

I'm getting json object on my mongodb with virustotal API This is how a json object stored in mongodb object looks like : { "_id" : ObjectId("597cd2f871eac714388b2f7f"), "results" : { "scans" : { "Bkav" : { "detected" : true...
more »

2017-07-31 06:07 (2) Answers

How to get value from router request?

I have created an angular app. In this app, I want to add a search. for this, I have a textbox and a button. Textbox name is name="search" I have a get method in API. router.get('/allActivities', (req, res) => { Activity.find({ name: req....
more »

2017-07-28 07:07 (1) Answers

MongoDb find multiple fields

Bonjour Je rencontre un problème pour construire ma requete mongodb Voici ma requte SQL select ID from TABLE where (compatibility like '%motclee1%' OR type like '%motclee1%') AND (compatibility like '%motclee2%' OR type like '%motclee2%') AND (compa...
more »

2017-07-27 15:07 (0) Answers

mongodb underscore wildcard search

I am a newbie to mongodb. I just want to know what is the Mongodb equivalent operator for mysql _ for wildcard search. For example in mysql if want to search a phone number column in the format of 123 456 7890 we can search like '_ _ ____'. How do we...
more »

2017-07-27 14:07 (1) Answers

Fuzzy Searching with Mongodb: No results

I have implemented fuzzy searching using regex as shown below. I'm trying to figure out how to display something if no results are found from the search. How would I display: "No results found." If none are found? Thanks! function escapeRegex(text...
more »

2017-07-20 21:07 (0) Answers

Can't install Mongo gem - make failed, exit code 1

I've installed Ruby 2.4.0 on Windows via the RubyInstaller. Ruby works fine and I've been able to install all the gems I've wanted so far. But I'm having issues installing the mongo gem. When I do gem install mongo --no-rdoc --no-ri I get the follo...
more »

2017-07-19 12:07 (1) Answers

JAVA bean design for embedded beans

I am using java backend to connect with my mongo database and i am designing my bean class . I am using jersey-jackson for rest services.I am using jackson's java bean mapping for receiving data from post method. Not i have a collection called TastTa...
more »

2017-07-08 16:07 (0) Answers

MongoDB: Indexing for a live search

Situation I need to create a live search with MongoDB. But I don't know, which index is better to use normal or text. Yesterday I found main differences between them. I have a following document: { title: 'What vitamins are found in blueberries...
more »

2017-07-07 19:07 (0) Answers