We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b1fa6f + 3160c20 commit 6d5bf46Copy full SHA for 6d5bf46
src/resource.js
@@ -62,7 +62,9 @@ class Resource extends BaseResource {
62
const ids = baseRecords.map(baseRecord => (
63
baseRecord.param(property.name())
64
))
65
- const records = await this.SequelizeModel.findAll({ where: { id: ids } })
+ const records = await this.SequelizeModel.findAll({
66
+ where: { [this.SequelizeModel.primaryKeyField]: ids },
67
+ })
68
const recordsHash = records.reduce((memo, record) => {
69
memo[record.id] = record
70
return memo
0 commit comments