We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 13
Object-Relational Mapping
(ORM)
MongoDB, Mongoosejs, Node.js
Agus KurniawanTable of Content
Preface
1. Development Environment
‘1 MongoDB
1.2. Nodes and Development Toals
1.3 MongoDB Driver for Node.js
14 ORM MongoDB
2. Schemas and Models
3. Create, Read, Update and Delete Documents
3.2. Create
33 Read
34 Update
2S Delete
41 Preparation
42 Finding
5. ie ‘and Mongoosejs
‘S.LLnsert
5.2 Read
52.2 Read
5.2.3 Delete
5,3 Getting List of GridFs File1. Development Environment
1.1 MongoDB
Fist, you should have MongoDB in development. 1 you have already insta
skip these steps
"use Ubunta for development. You update repository.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recy 7FOCEBIO
sudo apt-get_update
{ngall MongoDB daabase engine
Alter that, we install mongodb diver for nodes
For Mac and Windows piforns, ou ca downloed MongpDB an inal icy rom web, ip:renanangod ry
1.2 Node.js and Development Tools
‘Basically you can use ay text editor for nodes development tool For GUI edie, you can use Eclipse Web Javascript, Visual Studio and Webstorm,
Here i sample itor code for nove fom eB, pj om