rql get multiple documents from list of keys rethinkdb in javascript

后端 未结 4 1987
广开言路
广开言路 2021-01-05 00:16

I have a table of \"person\" data, which has a unique key \"id\". I have a list of id\'s that I want to get the data for which I\'ll be sending as a JSON array from the cli

4条回答
  •  Happy的楠姐
    2021-01-05 00:36

    Update for 2017. Use the ES6 spread operator '...'

    r.db('vp').table('user').getAll(...["0", "0", "99"])
    

提交回复
热议问题