1. Header --> Code , Status , Massage
2. Body --> JSON , DATA insert Massage
3. Cookies --> Cookie Encryption/Decryption and others policies...
1. JSON Array/Object pattern
2. Type of image/audio/video
1. Key Verification .
2. User Agent Verification .
3. CSRF Protection.
4. Rate Limiting.
5. Data Sanitization.
6. Authentication/Authorization.
7. HTTP Secure Header.
we know mongodb always create objectId --> for example : _id: ObjectId(7df78ad8902c) 7df78ad8902c is 12 bytes hexadecimal number. > First 4 bytes (7df7) --> Current Timestamp. > Next 3 bytes (8ad) --> Machine ID. > Next 2 bytes (89) --> Process ID. > Last 3 bytes (02c) --> Incremental Value.
db.collection_name.find({this sector name is query_parameter.you can apply condition this area.},{this area name is projection_parameter})
for example:---
db.collection_name.find({price:($lt:"1000")},{});
> $lt = less then
> $lte = less then equal
> $gt = greater then
> $gte = greater then equal
> $eq = equal
> $ne = not equal
> $in = in equal (it's working multiple. so it work with array)
> $nin = not in equal
>>>>> Logical Operators <<<<<<
* $and
* $or
>>>>> find Limit <<<<<<
for example :
db.collection_name.find().limit(Number)
>>>>> Sort Records <<<<<<
for example :
db.collection_name.find({},{title:1}).sort({title:1}).limit(Number)
db.collection_name.updateOne({this sector name is selection_parameter.},{New data})
for example:---
db.collection_name.updateOne({id: 2868},{$set:{title:"new title", price:"new Price"}});