Now building the MongoDB query hash in the measure model