Open
Description
Example:
adapter.findAll(User, {
where: {
age: { '>': 30 },
status: 'unknown'
}
});
Let's say there is a secondary index setup on the "status" field. In order to tell the query to take advantage of this, I propose the following:
adapter.findAll(User, {
where: {
age: { '>': 30 },
status: { '==': 'unknown' }
}
}, {
keys: ['status']
});
Which will optimize the query by first doing a getAll('unknown', { index: 'status' })
and then adding the filter
calls.