Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MongoDB Example Json
//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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.