|
[ibmcloud@bravo:~/variety04:05]$mongo test --eval "var collection = 'users' " variety.js
MongoDB shell version: 2.4.9
connecting to: test
Variety: A MongoDB Schema Analyzer
Version 1.5.0, released 14 May 2015
Using collection of "users"
Using query of { }
Using limit of 5
Using maxDepth of 99
Using sort of { "_id" : -1 }
Using outputFormat of "ascii"
Using persistResults of false
Using resultsDatabase of "varietyResults"
Using resultsCollection of "usersKeys"
Using resultsUser of null
Using resultsPass of null
Using plugins of [ ]
+----------------------------------------------------------------------------+
| key | types | occurrences | percents |
| -------------------------- | -------------------- | ----------- | -------- |
| _id | ObjectId | 5 | 100.0 |
| name | String | 5 | 100.0 |
| bio | String | 3 | 60.0 |
| pets | String (1),Array (1) | 2 | 40.0 |
| someNestedObject | Object | 1 | 20.0 |
| someNestedObject.a | Object | 1 | 20.0 |
| someNestedObject.a.b | Object | 1 | 20.0 |
| someNestedObject.a.b.c | Object | 1 | 20.0 |
| someNestedObject.a.b.c.d | Object | 1 | 20.0 |
| someNestedObject.a.b.c.d.e | Number | 1 | 20.0 |
| someWeirdLegacyKey | String | 1 | 20.0 |
+----------------------------------------------------------------------------+
[ibmcloud@bravo:~/variety05:06]$mongo test --eval "var collection = 'users', maxDepth = 3" variety.js
MongoDB shell version: 2.4.9
connecting to: test
Variety: A MongoDB Schema Analyzer
Version 1.5.0, released 14 May 2015
Using collection of "users"
Using query of { }
Using limit of 5
Using maxDepth of 3
Using sort of { "_id" : -1 }
Using outputFormat of "ascii"
Using persistResults of false
Using resultsDatabase of "varietyResults"
Using resultsCollection of "usersKeys"
Using resultsUser of null
Using resultsPass of null
Using plugins of [ ]
+----------------------------------------------------------------------+
| key | types | occurrences | percents |
| -------------------- | -------------------- | ----------- | -------- |
| _id | ObjectId | 5 | 100.0 |
| name | String | 5 | 100.0 |
| bio | String | 3 | 60.0 |
| pets | String (1),Array (1) | 2 | 40.0 |
| someNestedObject | Object | 1 | 20.0 |
| someNestedObject.a | Object | 1 | 20.0 |
| someNestedObject.a.b | Object | 1 | 20.0 |
| someWeirdLegacyKey | String | 1 | 20.0 |
+----------------------------------------------------------------------+
|
|
|