// Creating an index that returns true or false based on if certain property is > 0 | |
r.db("example").table("example").indexCreate("example_index", (row) => { return row('above_zero').gt(0) }) | |
// Only returns true values | |
r.db("example").table("example").getAll( true , {index: "above_zero"}) | |
// Only returns false values | |
r.db("example").table("example").getAll( false , {index: "above_zero"}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment