rethinkdb-rs icon indicating copy to clipboard operation
rethinkdb-rs copied to clipboard

Compound Index Support for GetAll Queries

Open DreamTexX opened this issue 1 year ago • 0 comments

r.get_all does not seem to support compound indexes.

Example Code:

r.table("users").get_all(r.args((
  [id, team_id],
  get_all::Options::default().index("compound_user_team"),
)))

("compound_user_team" is an created index for the fields "id" and "team_id")

Returns no results, while the javascript equivalent returns the expected result

r.table("users").getAll([id, team_id], {index: "compound_user_team"})

DreamTexX avatar Jan 15 '24 04:01 DreamTexX