साथ काम करने वाली सुविधाएं: 5.0

यहां दी गई टेबल में, MongoDB 4.0 की उन सुविधाओं के बारे में बताया गया है जो Cloud Firestore के साथ काम करती हैं. व्यवहार में अंतर के लिए, व्यवहार में अंतर देखें.

क्वेरी और प्रोजेक्शन ऑपरेटर

Cloud Firestore में ये क्वेरी और प्रोजेक्शन ऑपरेटर इस्तेमाल किए जा सकते हैं:

ऐरे ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$all हां
$elemMatch हां
$size हां

बिटवाइज़ ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$bitsAllClear नहीं
$bitsAllSet नहीं
$bitsAnyClear नहीं
$bitsAnySet नहीं

टिप्पणी करने वाला ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$comment नहीं

कंपैरिज़न ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$eq हां
$gt हां
$gte हां
$in हां
$lt हां
$lte हां
$ne हां
$nin हां

एलिमेंट ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$exists हां
$type हां

आकलन करने वाली क्वेरी के ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$expr हां
$jsonSchema नहीं
$mod हां
$regex हां
$text हां
$where नहीं

तार्किक ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$and हां
$nor हां
$not हां
$or हां

प्रोजेक्शन ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$ हां
$elemMatch हां
$meta Partial (supports `textScore`)
$slice हां

मोबाइल ऑपरेटर की जानकारी अपडेट करना

Cloud Firestore में, अपडेट करने वाले ये ऑपरेटर इस्तेमाल किए जा सकते हैं.

ऐरे ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$ हां
$[] हां
$[<identifier>] हां
$addToSet हां
$pop हां
$pull हां
$pullAll हां
$push हां

बिटवाइज़ ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$bit हां

फ़ील्ड ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$currentDate हां
$inc हां
$max हां
$min हां
$mul हां
$rename हां
$setOnInsert हां

मॉडिफ़ायर अपडेट करना

Modifier इस्तेमाल किया जा सकता है
$each हां
$position हां
$slice हां
$sort हां

एग्रीगेशन पाइपलाइन ऑपरेटर

Cloud Firestore में, एग्रीगेशन पाइपलाइन के इन ऑपरेटर का इस्तेमाल किया जा सकता है.

एक्युमुलेटर

Expression इस्तेमाल किया जा सकता है
$addToSet हां
$avg हां
$count हां
$first हां
$last हां
$max हां
$mergeObjects हां
$min हां
$push हां
$stdDevPop नहीं
$stdDevSamp नहीं
$sum हां

एक्युमलेटर एक्सप्रेशन

Expression इस्तेमाल किया जा सकता है
$avg हां
$first हां
$last हां
$max हां
$min हां
$stdDevPop नहीं
$stdDevSamp नहीं
$sum हां

अंकगणितीय ऑपरेटर

सीमाएं: अंकगणितीय ऑपरेटर, decimal128 वैल्यू के साथ काम नहीं करते.

ऑपरेटर इस्तेमाल किया जा सकता है
$abs हां
$add हां
$ceil हां
$divide हां
$exp हां
$floor हां
$ln हां
$log हां
$log10 हां
$mod हां
$multiply हां
$pow हां
$sqrt हां
$subtract हां
$trunc हां

ऐरे ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$arrayElemAt हां
$arrayToObject हां
$concatArrays हां
$filter हां
$firstN हां
$in हां
$indexOfArray हां
$isArray हां
$map हां
$objectToArray हां
$range हां
$reduce हां
$reverseArray हां
$size हां
$slice हां
$zip हां

बूलियन ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$and हां
$not हां
$or हां

कंपैरिज़न ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$cmp हां
$eq हां
$gt हां
$gte हां
$lt हां
$lte हां
$ne हां

कंडिशनल एक्सप्रेशन ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$cond हां
$ifNull हां
$switch हां

तारीख वाले ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$dateAdd हां
$dateDiff हां
$dateFromParts हां
$dateFromString हां
$dateSubtract हां
$dateToParts हां
$dateToString हां
$dateTrunc हां
$dayOfMonth हां
$dayOfWeek हां
$dayOfYear हां
$hour हां
$isoDayOfWeek हां
$isoWeek हां
$isoWeekYear हां
$millisecond हां
$minute हां
$month हां
$second हां
$toDate हां
$week हां
$year हां

अन्य ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$getField हां
$natural हां (बढ़ते क्रम में)
$toHashedIndexKey नहीं

लिटरल एक्सप्रेशन ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$literal हां

ऑब्जेक्ट ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$mergeObjects हां
$objectToArray हां
$setField नहीं

सेट ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$allElementsTrue हां
$anyElementTrue हां
$setDifference हां
$setEquals हां
$setIntersection हां
$setIsSubset हां
$setUnion हां

स्टेज ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$addFields हां
$bucket हां
$bucketAuto नहीं
$collStats हां
$count हां
$currentOp नहीं
$facet हां
$geoNear नहीं
$graphLookup नहीं
$group हां
$indexStats नहीं
$limit हां
$listLocalSessions नहीं
$listSessions नहीं
$lookup

हां

$match हां
$out नहीं
$project हां
$redact नहीं
$replaceRoot हां
$sample हां
$set हां
$setWindowFields नहीं
$skip हां
$sort हां
$sortByCount हां
$unset हां
$unwind हां

स्ट्रिंग ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$concat हां
$dateFromString हां
$dateToString हां
$indexOfBytes हां
$indexOfCP हां
$ltrim हां
$rtrim हां
$split हां
$strcasecmp हां
$strLenBytes हां
$strLenCP हां
$substr हां
$substrBytes हां
$substrCP हां
$toLower हां
$toString हां
$toUpper हां
$trim हां

सिस्टम वैरिएबल

वैरिएबल इस्तेमाल किया जा सकता है
$$CURRENT No
$$DESCEND नहीं
$$KEEP No
$$PRUNE नहीं
$$REMOVE Yes
$$ROOT हां

टेक्स्ट ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$meta हां

टाइप ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$convert हां
$toBool हां
$toDate हां
$toDecimal हां
$toDouble हां
$toInt हां
$toLong हां
$toObjectId हां
$toString हां
$type हां

वैरिएबल ऑपरेटर

ऑपरेटर इस्तेमाल किया जा सकता है
$let हां

जियाेस्पेशल

Cloud Firestore में इन जियोस्पेशल ऑपरेटर का इस्तेमाल किया जा सकता है.

ज्यामिति के बारे में बताने वाले स्पेसिफ़ायर

Specifier इस्तेमाल किया जा सकता है
$box नहीं
$center नहीं
$centerSphere नहीं
$geometry नहीं
$maxDistance नहीं
$minDistance नहीं
$polygon नहीं
$uniqueDocs नहीं

क्वेरी सिलेक्टर

Selector इस्तेमाल किया जा सकता है
$geoIntersects नहीं
$geoWithin नहीं
$near हां
$nearSphere नहीं
$nearSphere नहीं
$uniqueDocs नहीं

इंडेक्स और इंडेक्स प्रॉपर्टी

Cloud Firestore में इन इंडेक्स और इंडेक्स ऑपरेटर का इस्तेमाल किया जा सकता है.

इंडेक्स

इंडेक्स का टाइप इस्तेमाल किया जा सकता है
2D नहीं
2dsphere हां
कंपाउंड हां
हैश किया गया नहीं
मल्टीकी हां
एक फ़ील्ड हां
टेक्स्ट हां

इंडेक्स प्रॉपर्टी

प्रॉपर्टी इस्तेमाल किया जा सकता है
बैकग्राउंड हां
केस-इनसेंसिटिव नहीं
कुछ हद तक नहीं
नॉन-स्पार्स हां
sparse हां
टेक्स्ट हां
TTL (टीटीएल) हां
यूनीक हां

डेटाबेस के लिए निर्देश

Cloud Firestore में, डेटाबेस के ये कमांड इस्तेमाल किए जा सकते हैं.

एग्रीगेशन

Command इस्तेमाल किया जा सकता है
aggregate हां
count हां
distinct हां
group

नहीं

एग्रीगेशन में $group स्टेज का इस्तेमाल किया जा सकता है. हालांकि, ग्रुप कमांड का इस्तेमाल नहीं किया जा सकता.

mapReduce नहीं

पुष्टि करना

Command इस्तेमाल किया जा सकता है
authenticate नहीं
getnonce नहीं
logout नहीं

क्वेरी और डेटा में बदलाव करने की कार्रवाइयां

Command इस्तेमाल किया जा सकता है
watch (चेंज स्ट्रीम) नहीं
delete हां
eval नहीं
find हां
findAndModify हां
getLastError हां
getMore हां
getPrevError नहीं
GridFS नहीं
insert हां
parallelCollectionScan नहीं
replaceOne

नहीं

replaceOne ड्राइवर मेथड, update कमांड के साथ काम करता है.

resetError नहीं
update हां

सेशन के लिए निर्देश

Command इस्तेमाल किया जा सकता है
abortTransaction हां
commitTransaction हां
endSessions हां
killAllSessions नहीं
killAllSessionsByPattern नहीं
killSessions नहीं
refreshSessions नहीं
startSession

startSession ड्राइवर मेथड का इस्तेमाल करके सेशन शुरू किए जा सकते हैं.

एडमिन के लिए निर्देश

Cloud Firestore में, एडमिन के ये निर्देश इस्तेमाल किए जा सकते हैं.

Command इस्तेमाल किया जा सकता है
cloneCollectionAsCapped नहीं
collMod नहीं
collMod: expireAfterSeconds नहीं
convertToCapped नहीं
copydb नहीं
create हां
createIndex हां
createIndexes हां
createView नहीं
currentOp नहीं
drop हां
dropDatabase

नहीं

डेटाबेस मिटाने के लिए, डेटाबेस मिटाना लेख पढ़ें.

dropIndex

हां

इंडेक्स मिटाने के लिए, इंडेक्स मैनेज करना लेख पढ़ें.

dropIndexes

नहीं

filemd5 नहीं
getAuditConfig नहीं
killCursors हां
killOp नहीं
listCollections हां
listDatabases हां
listIndexes हां
reIndex नहीं
renameCollection नहीं
setAuditConfig नहीं

डाइग्नोस्टिक कमांड

Command इस्तेमाल किया जा सकता है
buildInfo हां
collStats हां
connectionStatus हां
connPoolStats नहीं
dataSize नहीं
dbHash नहीं
dbStats नहीं
explain

हां

व्यवहार में अंतर और सीमाओं के बारे में जानने के लिए, क्वेरी के बारे में जानकारी देखें

features नहीं
hello हां
hostInfo हां
listCommands नहीं
profiler नहीं
serverStatus नहीं
top नहीं
whatsmyuri नहीं

उपयोगकर्ता को मैनेज करने के लिए निर्देश

डेटाबेस का ऐक्सेस मैनेज करने के लिए, यह तरीका अपनाएं:

Command इस्तेमाल किया जा सकता है
createUser नहीं
dropAllUsersFromDatabase नहीं
dropUser नहीं
grantRolesToUser नहीं
revokeRolesFromUser नहीं
updateUser नहीं
usersInfo नहीं

भूमिका मैनेज करने के लिए निर्देश

डेटाबेस का ऐक्सेस मैनेज करने के लिए, यह तरीका अपनाएं:

Command इस्तेमाल किया जा सकता है
createRole नहीं
dropRole नहीं
dropAllRolesFromDatabase नहीं
grantPrivilegesToRole नहीं
grantRolesToRole नहीं
invalidateUserCache नहीं
revokePrivilegesFromRole नहीं
revokeRolesFromRole नहीं
rolesInfo नहीं
updateRole नहीं

आगे क्या करना है