node --max-old-space-size=7168 my-node-script.js #increase to 7gb
nothing changes. The flow is fairly simple: an http get pushes a mongodb find query (in a template node) and a projection spec through the "mongodb in" node (set to "find") to an http response:
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/8oQvdYaBEbs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
Input
Calls a MongoDB collection method based on the selected operator.
Find queries a collection using the msg.payload as the query statement as per the .find() function.
Output
A simple MongoDB output node. Can save, insert, update and remove objects from a chosen collection.
MongoDB only accepts objects.
{_id:{$lt:new ObjectId( Math.floor(new Date('Sun Oct 11 2015 00:00:00 GMT-0400 (EDT)').getTime()/1000).toString(16) + '0000000000000000'),$gt:new ObjectId( Math.floor(new Date('Sat Oct 10 2015 00:00:00 GMT-0400 (EDT)').getTime()/1000).toString(16) + '0000000000000000')}}
db.inventory.find( {} )
{_id:{$lt:new ObjectId( Math.floor(new Date('Sun Oct 11 2015 00:00:00 GMT-0400 (EDT)').getTime()/1000).toString(16) + '0000000000000000'),$gt:new ObjectId( Math.floor(new Date('Sat Oct 10 2015 00:00:00 GMT-0400 (EDT)').getTime()/1000).toString(16) + '0000000000000000')}}
That code is parseable JSON when quoted correctly.
{
"_id": {
"$lt": "newObjectId(Math.floor(newDate('SunOct11201500: 00: 00GMT-0400(EDT)').getTime()/1000).toString(16)+'0000000000000000')",
"$gt": "newObjectId(Math.floor(newDate('SatOct10201500: 00: 00GMT-0400(EDT)').getTime()/1000).toString(16)+'0000000000000000')"
}
}
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
{"_id": {"$lt": "new ObjectId(Math.floor(new Date('Sun Oct 11 2015 00:00:00 GMT-0400 (EDT)').getTime()/1000).toString(16)+'0000000000000000')”,"$gt": "new ObjectId(Math.floor(new Date('Sat Oct 10 2015 00:00:00 GMT-0400 (EDT)').getTime()/1000).toString(16)+'0000000000000000’)"}}