-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScrapbook-1.mongo
67 lines (66 loc) · 2.95 KB
/
Scrapbook-1.mongo
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
61
62
63
64
65
66
67
db.Etudiant.insertMany([{
"_id" : ObjectId("5db1c731f57bc720d8a325c3"),
"nom" : "bouhouch",
"prenom" : "khalid",
"images" : {
"0" : "image.png"
},
"publications" : [
{
"_id" : ObjectId("5db1b09861353f20d8dfa1ae"),
"titre" : "I need help to Connect NodeJs with MongoDB",
"Domaines" : [
"Bootstrap",
"NodeJs",
"MongoDB"
],
"contenu" : "hello friends, i'm trying to connect my App to MongoDB database, my App based on NodeJs in the backend , and i need some help to connect them... ",
"date" : ISODate("2019-10-10T11:15:00Z"),
"type" : "public",
"Commentaires" : [
{
"_id" : ObjectId("5db1b1d061353f20d8dfa1af"),
"contenu" : "see this StackOverFlow page , it may helps you "
},
{
"_id" : ObjectId("5db1b29461353f20d8dfa1b0"),
"contenu" : "see this pic ",
"image" : "1.png"
}
]
}
]
},
{
"_id" : ObjectId("5db1c746f57bc720d8a325c4"),
"nom" : "baqach",
"prenom" : "adil",
"images" : {
"0" : "image.png"
},
"publications" : [
{
"_id" : ObjectId("5db1b09861353f20d8dfa1ae"),
"titre" : "I need help to Connect NodeJs with MongoDB",
"Domaines" : [
"Bootstrap",
"NodeJs",
"MongoDB"
],
"contenu" : "hello friends, i'm trying to connect my App to MongoDB database, my App based on NodeJs in the backend , and i need some help to connect them... ",
"date" : ISODate("2019-10-10T11:15:00Z"),
"type" : "public",
"Commentaires" : [
{
"_id" : ObjectId("5db1b1d061353f20d8dfa1af"),
"contenu" : "see this StackOverFlow page , it may helps you "
},
{
"_id" : ObjectId("5db1b29461353f20d8dfa1b0"),
"contenu" : "see this pic ",
"image" : "1.png"
}
]
}
]
}])