From: Sujee <suje...@gmail.com>
Date: Sun, 9 Sep 2012 11:11:52 -0700 (PDT)
Local: Sun, Sep 9 2012 2:11 pm
Subject: Aggregation framework questions
I have few questions about new aggregation framework. Question 1. Does non-existence of a field considered as $min value in a For e.g. In the following script, min_metric2 is not printed because db.metric.remove({}); var result = db.metric.aggregate } ] } ); printjson(result); ================================================ { } Question 2: How do I set a fixed String (hard-coded value) to a field in $project or anywhere else in the pipeline? Question 3: Is it possible to define a field conditionally (based on a Thank you. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||