Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

print from mongo console to file

> EDITOR="cat > /tmp/x.json"
> x = db.MyCollection.find(...).toArray()
> edit x
>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #mongo #console #file
ADD COMMENT
Topic
Name
8+7 =