Blog

Archive for the MongoDB Category


CRUD (Create, Read, Update, Delete) with Modularized Node.js, MongooseJS, and MongoDB
Posted on July 22, 2015 in MongoDB, Node.js by Matt Jennings

body-parser
ejs
express
mongoose

{
“name”: “modularized-mongoose-dashboard”,
“version”: “0.0.1”,
“description”: “modularized mongoose dashboard using node.js”,
“license”: “MIT”,
“repository”: …

Read more


Using MongooseJS to Create Associations Among MongoDB Collections
Posted on July 21, 2015 in MongoDB, Node.js by Matt Jennings

Below is example code using MongooseJS, other Node.js modules, and a MongoDB database to …

Read more


Push Form Post Data, Including a Date, into a MongoDB Database Using the MongooseJS exec() Function
Posted on July 20, 2015 in MongoDB, Node.js by Matt Jennings

// Require path
var path = require(“path”);

// Requite express and create express app
var express = require(“express”);
var app = express();

// Require body-parse …

Read more


Using Mongoose with Node.js to Add Documents into a MongoDB Collection and For Loops to Display Document Fields
Posted on July 20, 2015 in MongoDB, Node.js by Matt Jennings

// require path
var path = require(“path”);

// require express and create express app
var express = require(“express”);
var app = express();

// Require body-parser …

Read more


MongoDB Array Operators
Posted on July 17, 2015 in MongoDB by Matt Jennings

db.schools.update( {name: “San Jose”}, {$push: {amenities:{$each: [“onsite dorm”, “cafeteria”, “pool”] } } } )

db.schools.update( {name: “San Jose”}, {$push: {amenities: “hot …

Read more