I am on Chapter 2.
Trying to load this .js file using Terminal application on Mac OS.
I get this error :
MongoDB Enterprise Cluster0-shard-0:PRIMARY> load(“loadMovieDetailsDataset.js”)
2019-07-07T16:42:04.104-0400 E QUERY [js] [src/mongo/shell/utils.js:25:13] Error: drop failed: {
“operationTime” : Timestamp(1562532120, 1),
“ok” : 0,
“errmsg” : “not authorized on video to execute command { drop: “movieDetails”, lsid: { id: UUID(“d87e16f6-bc77-4e40-a6e9-0a146c972e6d”) }, $clusterTime: { clusterTime: Timestamp(1562532030, 1), signature: { hash: BinData(0, 1250D5A309E7D3EBF80C0E33D9C3A752B1F06EBA), keyId: 6661714504839069697 } }, $db: “video” }”,
“code” : 13,
“codeName” : “Unauthorized”,
“$clusterTime” : {
“clusterTime” : Timestamp(1562532120, 1),
“signature” : {
“hash” : BinData(0,“GxWNaCZUPoohQaLJWDrOxthYwWo=”),
“keyId” : NumberLong(“6661714504839069697”)
}
}
}
Stack trace:
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DBCollection.prototype.drop@src/mongo/shell/collection.js:707:1
@loadMovieDetailsDataset.js:2:1
@(shell):1:1
2019-07-07T16:42:04.104-0400 E QUERY [js] Error: error loading js file: loadMovieDetailsDataset.js @(shell):1:1
MongoDB Enterprise Cluster0-shard-0:PRIMARY>
How do I resolve ?