-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwitclone.tweets.json
More file actions
53 lines (53 loc) · 1.05 KB
/
twitclone.tweets.json
File metadata and controls
53 lines (53 loc) · 1.05 KB
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
{
"$jsonSchema": {
"bsonType": "object",
"additionalProperties": false,
"required": [
"byUserId",
"content",
"dateposted",
"likes",
"retweets",
"comments"
],
"properties": {
"_id": {},
"byUserId": {
"bsonType": "objectId",
"description": "Pointer to user who tweeted"
},
"content": {
"bsonType": "string",
"description": "Main body of the tweet",
"maxLength": 280
},
"likes": {
"bsonType": "int",
"description": "Count of likes",
"minimum": 0
},
"comments": {
"bsonType": "int",
"description": "Count of comments",
"minimum": 0
},
"retweets": {
"bsonType": "int",
"description": "count of retweets",
"minimum": 0
},
"dateposted": {
"bsonType": "date",
"description": "date of tweet posted"
}
}
},
"$and": [
{
"content": {
"$regex": "[^><]+",
"$options": "gi"
}
}
]
}