I know that file is valid ,
If you know that how to check valid file and let me know
test.json will be created when all documents once imported target file
Please watch the video ,
you have asked file size if there is one or more documents consisting in single collection when you start mongoimport all documents will be importing in target file
rs1:PRIMARY> db.test1.find().count()
4
rs1:PRIMARY> db.test1.find().size()
4
rs1:PRIMARY> db.test1.stats()
{
“ns” : “sample.test1”,
“size” : 207,
“count” : 4,
“avgObjSize” : 51,
“storageSize” : 36864,
“capped” : false,
“wiredTiger” : {
“metadata” : {
“formatVersion” : 1
In MongoDB old version 3.0 working mongoimport but new version getting error.