1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
[
{
"_type": "_schemaType",
"name": "ContactView",
"schema": {
"type": "object",
"extends": "View"
}
},
{
"_type": "_schemaType",
"name": "ContactView2",
"schema": {
"type": "object",
"extends": "View"
}
},
{
"_type": "Map",
"targetType": "ContactView",
"map": {"Contact2": "function (c) { jsondb.emit({key: c.name.lastName, displayName: c.displayName, contact2: true }); }"}
},
{
"_type": "Map",
"targetType": "ContactView",
"map": {"Contact3": "function (c) { jsondb.emit({key: c.name.lastName, displayName: c.displayName, firstName: c.name.firstName, contact3: true }); }"}
},
{
"_type": "Contact2",
"displayName": "Joe Smith",
"name": {
"firstName": "joe",
"lastName": "smith"
}
},
{
"_type": "Contact3",
"displayName": "Nancy Doe",
"name": {
"firstName": "nancy",
"lastName": "doe"
}
},
{
"_type": "Contact2",
"displayName": "Joe Johnson",
"name": {
"firstName": "joe",
"lastName": "johnson"
}
},
{
"_type": "Contact3",
"displayName": "Nancy Jones",
"name": {
"firstName": "nancy",
"lastName": "jones"
}
}
]
|