Skip to content

Commit

Permalink
Merge pull request #23 from T-baby/dev
Browse files Browse the repository at this point in the history
1.0.7.4
  • Loading branch information
T-baby authored Oct 13, 2016
2 parents a600ad8 + 220bbf1 commit fd12d7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.cybermkd</groupId>
<artifactId>MongodbPlugin</artifactId>
<version>1.0.7.3</version>
<version>1.0.7.4</version>
<packaging>jar</packaging>

<name>MongodbPlugin</name>
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/cybermkd/kit/MongoQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,12 @@ public boolean saveList() {


public MongoQuery projection(String... keys) {
BasicDBObject dbObj = new BasicDBObject();
for (String key : keys) {
this.projection = new BasicDBObject().append(key, 1);
dbObj.append(key, 1);
}

this.projection = dbObj;
return this;
}

Expand Down

0 comments on commit fd12d7c

Please sign in to comment.