Created
January 17, 2017 10:15
-
-
Save davefinster/db8ece0b0519904ef13ad9e167da7b9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//query is something like | |
query = r.table("users").filter(function(user){ | |
return user.name.eq(foo) | |
}) | |
inner = r.do("", function(string) { | |
var item = query; | |
return { | |
count:item.count(), | |
results: item.slice(offset, offset + limit).coerceTo('array') | |
}; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment