Migrating to Meteor/React

Does anyone know of any resources available for Meteor that can help load large (20MB-80MB) assets for (mainly) offline use? My current development is completely in Vanilla JS (on the client side) and I'm considering building a Meteor/React version ...
more »

2017-01-16 16:01 (1) Answers

MongoDB REST API dynamic data pagination

I am implementing REST API with Express and Mongoose. I am stuck with a task to paginate results for a collection with large number of documents. Document is a social media post which has fields like: created_at, updated_at and score. Ordinary pagin...
more »

2017-01-15 18:01 (1) Answers

Finding if current date is an alternate date

I have to implement a subscription where users can choose to subscribe his products which will get delivered to him on each alternate from the date he subscribed or with a Two Day Gap from the subscribed date. //Sample Data [ { "subscrib...
more »

2017-01-13 23:01 (1) Answers

CakePHP 2.9 + MongoDB Introduction

Am start connect to MongoDB with cake php. I have done cakephp2.2 with MongoDB but I need to connect to cakephp2.9 with MongoDB, I have complete all process and when and call to any controller it showing fatel error. Error: Class 'String' not found ...
more »

2017-01-12 10:01 (0) Answers

Mongoose: TypeError: hex is not a function

I am developing a simple data persistence app using mongoose, After getting stuck on this error CastError: Cast to ObjectId failed for value "{ _id: 'id' }" at path "_id" for model 'foo' i tried to use mongoose.Types.ObjectId as suggested by ...
more »

2017-01-08 15:01 (4) Answers

MongoDB being held for ransom

My mongodb is now held for ransom with a message of "Your DB is Backed up at our servers, to restore send 0.1 BTC to the Bitcoin Address then send an email with your server ip". After reading many articles, I am still unsure what publicly accessible ...
more »

2017-01-07 22:01 (1) Answers

java to mongoDB Date in where clause

I am trying to compare a date from java to mongoDB as follows. But it does not working correctly. Java code: Calendar calendar1 = Calendar.getInstance(); calendar1.setTime(new java.util.Date()); calendar1.set(Calenda...
more »

2017-01-04 12:01 (1) Answers

Fetch String Date between two Dates in MONGODB?

My collections having DATE key ,that is in String format, so how to query for finding giving date count or i can find how many data is there: I tried one experiment but it is not working ; db.colName.find({"date": {$gte: "Tue Aug 30 16:43:2...
more »

2017-01-03 08:01 (2) Answers

Simple $avg Query for Nodejs

This are all the codes that i have to make the app. So i am able to eitherimport the data/records from a csv file or insert manually from the app at localhost:3000 and it will be inserted into the database. From there on i will be able to query from ...
more »

2017-01-03 04:01 (1) Answers

Error Starting a MongoDB Database

I get the following output when trying to start a MongoDB database server and the server is unable to start. I have run mkdir -p data/db in my project directory. I run the command: mongod --dbpath=data/ --port 27017 I get the following output: 201...
more »

2017-01-02 21:01 (1) Answers

cakephp 3 unable to migrate mongo db

plz help on this, Exception: Could not infer database type from driver in [/var/www/nikhil3/vendor/cakephp/migrations/src/ConfigurationTrait.php, line 151] 2016-12-26 05:15:33 Error: [InvalidArgumentException] Could not infer database type from driv...
more »

2017-01-02 06:01 (0) Answers

Node.js loop over array of objects asynchronously

Sorry if the title itself is a contradiction :) JS beginner here.. I get an array of MongoDB documents and I want to extend each one with another object (from another table) so that I can pass this array of extended objects to my view. I want to ach...
more »

2017-01-02 03:01 (2) Answers

What Z means in MongoDB Date format

I am using mongodb and I noticed ISODate("2016-11-07T20:22:48.743Z"). This date format is in one of the newly created collection's field-value. I don't know what "743Z" means since in the remaining raws, all are saved with "0Z". Please help me under...
more »

2016-12-29 10:12 (1) Answers

How Security in MongoDB works (using x.509 cert)

I Read through many documents in the mongoDB doc, still unclear how authentication works for clients an member of replica set(using x.509). Found a resource "http://pe-kay.blogspot.in/2016/02/securing-mongodb-using-x509-certificate.html" which was w...
more »

2016-12-23 14:12 (0) Answers