日期:2014-05-16  浏览次数:20592 次

MongoDB实例
{
    "_id" : "4e76fd1e927e1c9127d1d2e8",
    "name" : "***",
    "embedPhoneList" : [
        {
            "type" : "家庭",
            "number" : "00000000000"
        },
        {
            "type" : "手机",
            "number" : "00000000000"
        }
    ],
    "embedAddrList" : [
        {
            "type" : "家庭",
            "addr" : "山东省诸城市***"
        },
        {
            "type" : "工作",
            "addr" : "深圳市南山区***"
        }
    ],
    "embedEmailList" : [
        {
            "email" : "********@gmail.com"
        },
        {
            "email" : "********@gmail.com"
        },
        {
            "email" : "********@gmail.com"
        },
        {
            "email" : "********@gmail.com"
        }
    ]
}

?

上述为本实例的document结构。。

?

1 楼 csdn_zuoqiang 2011-09-20  

{
	"_id" : "4e785d7d927e868caa2ff85b", 
	"person" : "张作强", 
	"department" : "技术部", 
	"perday" : [{
					"datetime" : "2011-9-20 17:31:41", 
					"review" : "", 
					"contents" : [{
									"content" : "1、整理CCL的中文说明笔记;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"},
								{
									"content" : "2、查看了Point软件结构,并找出其中用于二次开发的资源;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"}
								]}, 
				{
					"datetime" : "2011-9-20 17:31:41", 
					"review" : "", 
					"contents" : [{
									"content" : "1、整理CCL的中文说明笔记;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"},
								{
									"content" : "2、查看了Point软件结构,并找出其中用于二次开发的资源;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"}
								]}, 
				{
					"datetime" : "2011-9-20 17:31:41", 
					"review" : "", 
					"contents" : [{
									"content" : "1、整理CCL的中文说明笔记;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"},
								{
									"content" : "2、查看了Point软件结构,并找出其中用于二次开发的资源;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"}
								]}, 
				{
					"datetime" : "2011-9-20 17:31:41", 
					"review" : "", 
					"contents" : [{
									"content" : "1、整理CCL的中文说明笔记;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"}, 
								{
									"content" : "2、查看了Point软件结构,并找出其中用于二次开发的资源;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"}
								]}, 
				{
					"datetime" : "2011-9-20 17:31:41", 
					"review" : "", 
					"contents" : [{
									"content" : "1、整理CCL的中文说明笔记;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"},
								{
									"content" : "2、查看了Point软件结构,并找出其中用于二次开发的资源;", 
									"state" : "已完成", 
									"hasproblem" : "无", 
									"solution" : "无", 
									"hasrequired" : "无"}
								]}
				], 
	"summary" : "上周主要工作围绕在。。。", 
	"plans" : ["1. 学习TRIP数据库CCL命令;", "2. 听从领导/部门安排。"], 
	"committime" : "2011-9-20 17:31:41", 
	"starttime" : "2011-9-20 17:31:41", 
	"deadline" : "2011-9-20 17:31:41", 
	"departview" : "", 
	"superiorview" : ""
}