7 ms·
The example given is in the lower level imperative javascript you'd use to speak directly to MongoDB. Often you'd layer a more expressive declarative language
by audionerd 17y ago
The example given is in the lower level imperative javascript you'd use to speak directly to MongoDB.
Often you'd layer a more expressive declarative language on top of that, which is what drivers like MongoMapper or Mongoid provide.
Even within the JavaScript interpreter you can be writing declaratively, like this jLINQ example:
http://somewebguy.wordpress.com/2010/02/14/jlinq-in-mongodb-oh-snap/ http://somewebguy.wordpress.com/2010/02/14/jlinq-in-mongodb-...