Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 467 Bytes
package nMongo;
class Query {
var _query:Dynamic;
var _limit:Int;
var _skip:Int;
public function new() {
this._query = {}
this._limit = 0;
this._skip = 0;
}
public function where(name:String,value:Dynamic):Query {
Reflect.setField(this._query,name,value);
return this;
}
public function limit(limit:Int):Query {
this._limit = limit;
return this;
}
public function skip(skip:Int):Query {
this._skip = skip;
return this;
}
}