I do realize my lack of MongoDB knowledge/experience is most likely to blame here. Anyone that can point me to the right documentation would be appreciated.
MongoDB v4.4.8 community edition
mongorestore version: 100.5.0
Windows Server 2016
I am trying to restore a test DB from a bson dump but I don’t know the mongodump version used to create it. Here is the outcome,
C:\Users\eduardo>mongorestore /db:training D:\training
2021-08-31T08:48:45.126-0700 The --db and --collection flags are deprecated for this use-case; please use --nsInclude instead, i.e. with --nsInclude=${DATABASE}.${COLLECTION}
2021-08-31T08:48:45.127-0700 building a list of collections to restore from D:\training dir
2021-08-31T08:48:45.135-0700 reading metadata for training.table1 from D:\training\table1.metadata.json
2021-08-31T08:48:45.135-0700 Failed: restore error: error parsing metadata from D:\training\table1.metadata.json: error decoding key indexes.0: invalid JSON input. Position: 30. Character: N
2021-08-31T08:48:45.136-0700 0 document(s) restored successfully. 0 document(s) failed to restore.
The N in position 30 referenced in the message is for NumberInt(1).
{“options”:{},“indexes”:[{“v”:NumberInt(1) . . .
Could this be due to a version mismatch?