Last active
December 20, 2015 20:23
-
-
Save enginkartal/dfb9dc2c95e38e6a87b5 to your computer and use it in GitHub Desktop.
MongoDB Example Json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//content.json | |
{ | |
_id:ObjectId("507f191e810c19729de860ea"), | |
title: 'MongoDB Insert', | |
description: 'MongoDB Kayıt ekleme', | |
author: 'Engin Kartal', | |
url: 'http://www.enginkartal.com.tr', | |
keywors: ['mongodb', 'database', 'insert'], | |
likes: 5, | |
tags:['mongodb','insert'], | |
comments: [ | |
{ | |
user:'user1', | |
message: 'My first comment', | |
dateCreated: new Date(2015,08,29,17,35), | |
like: 0 | |
} | |
] | |
}, | |
{ | |
_id:ObjectId("507f191e810c19729de861eb"), | |
title: 'MongoDB Update', | |
description: 'MongoDB Kayıt güncelleme', | |
author: 'Seçkin Kartal', | |
url: 'http://www.enginkartal.com.tr', | |
keywors: ['mongodb', 'database', 'update'], | |
likes: 7, | |
tags:['mongodb','update'], | |
comments: [ | |
{ | |
user:'user25', | |
message: 'good article', | |
dateCreated: new Date(2015,09,19,16,25), | |
like: 5 | |
} | |
] | |
} | |
, | |
{ | |
_id:ObjectId("507f191e810c19729de861ec"), | |
title: 'MongoDB Delete', | |
description: 'MongoDB Kayıt silme', | |
author: 'Engin Kartal', | |
url: 'http://www.enginkartal.com.tr', | |
keywors: ['mongodb', 'database', 'delete'], | |
likes: 2, | |
tags:['mongodb','delete'], | |
comments: [ | |
{ | |
user:'user10', | |
message: 'can you help me?', | |
dateCreated: new Date(2015,09,15,18,45), | |
like: 2 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment