Open ghost opened 7 years ago
Up !
I had the same question. It seems to just work if you follow the documentation for indexFunction
.
For example, this seems to work:
await r.init(dbOptions, [
{
name: 'users',
indexes: [
{
indexFunction: [r.row('last_name'), r.row('first_name')],
name: 'full_name'
},
'username',
'someOtherIndex'
]
}
]);
Do you have support for compound indexes?