Reads every matching row, taking the routing key from the statement.
Type of the result records
Statement text using ? placeholders
?
Positional bindings for the statement
Rows from every shard the statement routes to
If the routing key cannot be determined and onUnroutable is throw
onUnroutable
throw
1.4.0
const { results } = await queryAll<User>('SELECT * FROM users WHERE id IN (?, ?)', ['user-1', 'user-2']); Copy
const { results } = await queryAll<User>('SELECT * FROM users WHERE id IN (?, ?)', ['user-1', 'user-2']);
Reads every matching row, taking the routing key from the statement.