Correct Mongo alias function definition