I tried below for copy system.profile to tmp collection,but it's throw below error,what's the problem?
IMARY> db.system.profile.find().forEach( function(x){db.tmp.insert(x)} );
2015-07-01T16:35:01.124+0800 E QUERY Error: field names cannot start with $ [$gt]
Why not use aggregation framework to query profile collection?
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/135e3d62-ea80-494b-b2d6-fea78ed6089f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.