$where support in the driver Query object

This commit is contained in:
Dwight
2009-01-30 15:09:38 -05:00
parent d3aa125d87
commit 643b12e0ce
4 changed files with 38 additions and 4 deletions

View File

@@ -32,11 +32,9 @@ int main() {
cout << "now using $where" << endl;
BSONObjBuilder query;
Query q = Query("{}").where("this.name == name" , BSON( "name" << "sara" ));
query.appendWhere( "this.name == name" , BSON( "name" << "sara" ) );
cursor = conn.query( ns , query.done() );
cursor = conn.query( ns , q );
int num = 0;
while ( cursor->more() ) {