Skip to content

Commit 385da77

Browse files
committed
Fix foreignKey for user.posts relation
1 parent 5680001 commit 385da77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
hasMany: {
3838
post: {
3939
localField: 'posts',
40-
foreignKey: 'post'
40+
foreignKey: 'userId'
4141
}
4242
},
4343
hasOne: {

0 commit comments

Comments
 (0)