Skip to content

Commit

Permalink
added distinct() function
Browse files Browse the repository at this point in the history
  • Loading branch information
marcesher committed Nov 6, 2010
1 parent d277f55 commit 88b3a5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/Mongo.cfc
Expand Up @@ -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);
Expand Down

0 comments on commit 88b3a5c

Please sign in to comment.