From 88b3a5c54e9db6c812dde0528dab7cab002b44b1 Mon Sep 17 00:00:00 2001 From: marc esher Date: Sat, 6 Nov 2010 12:45:00 -0400 Subject: [PATCH] added distinct() function --- core/Mongo.cfc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/Mongo.cfc b/core/Mongo.cfc index a5c3287..1b2df25 100644 --- a/core/Mongo.cfc +++ b/core/Mongo.cfc @@ -43,6 +43,10 @@ return new SearchBuilder(collectionName,db,mongoUtil); } + function distinct(string key, string collectionName, mongoConfig=""){ + return getMongoDBCollection(collectionName, mongoConfig).distinct( key ); + } + function save(struct doc, string collectionName, mongoConfig=""){ var collection = getMongoDBCollection(collectionName, mongoConfig); var bdbo = mongoUtil.toMongo(doc);