Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
variety
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
variety
Commits
d025b62d
Commit
d025b62d
authored
May 25, 2012
by
Wes Freeman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing README output for maxDepth.
parent
20143d07
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
README.markdown
README.markdown
+9
-9
No files found.
README.markdown
View file @
d025b62d
...
@@ -70,19 +70,19 @@ The default will traverse all the way to the bottom of that structure:
...
@@ -70,19 +70,19 @@ The default will traverse all the way to the bottom of that structure:
$ mongo test --eval "var collection = 'users'" variety.js
$ mongo test --eval "var collection = 'users'" variety.js
...
...
{ "_id" : { "key" : "someNestedObject" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
2, "percentContaining" : 33.33333333333333
}
{ "_id" : { "key" : "someNestedObject" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
1, "percentContaining" : 16.66666666666666
}
{ "_id" : { "key" : "someNestedObject.a" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
2, "percentContaining" : 33.33333333333333
}
{ "_id" : { "key" : "someNestedObject.a" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
1, "percentContaining" : 16.66666666666666
}
{ "_id" : { "key" : "someNestedObject.a.b" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
2, "percentContaining" : 33.33333333333333
}
{ "_id" : { "key" : "someNestedObject.a.b" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
1, "percentContaining" : 16.66666666666666
}
{ "_id" : { "key" : "someNestedObject.a.b.c" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
2, "percentContaining" : 33.33333333333333
}
{ "_id" : { "key" : "someNestedObject.a.b.c" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
1, "percentContaining" : 16.66666666666666
}
{ "_id" : { "key" : "someNestedObject.a.b.c.d" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
2, "percentContaining" : 33.33333333333333
}
{ "_id" : { "key" : "someNestedObject.a.b.c.d" }, "value" : { "types" :
[
"Object"
]
}, "totalOccurrences" :
1, "percentContaining" : 16.66666666666666
}
{ "_id" : { "key" : "someNestedObject.a.b.c.d.e" }, "value" : { "types" :
[
"Number"
]
}, "totalOccurrences" :
2, "percentContaining" : 33.33333333333333
}
{ "_id" : { "key" : "someNestedObject.a.b.c.d.e" }, "value" : { "types" :
[
"Number"
]
}, "totalOccurrences" :
1, "percentContaining" : 16.66666666666666
}
$ mongo test --eval "var collection = 'users', maxDepth = 3" variety.js
$ mongo test --eval "var collection = 'users', maxDepth = 3" variety.js
...
...
{ "_id" : { "key" : "someNestedObject" }, "value" : { "types" : [ "Object" ] }, "totalOccurrences" :
2, "percentContaining" : 33.33333333333333
}
{ "_id" : { "key" : "someNestedObject" }, "value" : { "types" : [ "Object" ] }, "totalOccurrences" :
1, "percentContaining" : 16.66666666666666
}
{ "_id" : { "key" : "someNestedObject.a" }, "value" : { "types" : [ "Object" ] }, "totalOccurrences" :
2, "percentContaining" : 33.33333333333333
}
{ "_id" : { "key" : "someNestedObject.a" }, "value" : { "types" : [ "Object" ] }, "totalOccurrences" :
1, "percentContaining" : 16.66666666666666
}
{ "_id" : { "key" : "someNestedObject.a.b" }, "value" : { "types" : [ "Object" ] }, "totalOccurrences" :
2, "percentContaining" : 33.33333333333333
}
{ "_id" : { "key" : "someNestedObject.a.b" }, "value" : { "types" : [ "Object" ] }, "totalOccurrences" :
1, "percentContaining" : 16.66666666666666
}
As you can see, variety only traversed three levels deep.
As you can see, variety only traversed three levels deep.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment