[rethinkdb] Fixes r.now() return results

This commit is contained in:
Alex Gorbatchev
2016-10-02 09:00:01 -07:00
parent 655bd4c93b
commit e1820ba703
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -14,6 +14,7 @@ r.connect({ host: "localhost", port: 28015 }, function(err, conn) {
users.filter(function(doc?) {
return doc("henry").eq("bob");
})
.filter(r.row("updatedAt").default(0).lt(r.now().sub(1000)))
.between("james", "beth")
.limit(4)
.run(conn, function(err, cursor) {
+1 -1
View File
@@ -47,7 +47,7 @@ declare module "rethinkdb" {
export function row(name: string): Expression<any>;
export function expr(stuff: any): Expression<any>;
export function now(): Time;
export function now(): Expression<Time>;
// Control Structures
export function branch(test: Expression<boolean>, trueBranch: Expression<any>, falseBranch: Expression<any>): Expression<any>;