Been having issues when there is an empty relation on hasOne. The proposed change stops the loader being called when the foreign key is null. Which prevents the following error
The loader.load() function must be called with a value,but got: null.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Been having issues when there is an empty relation on hasOne. The proposed change stops the loader being called when the foreign key is null. Which prevents the following error
The loader.load() function must be called with a value,but got: null.
This PR relates to the previously merged commit
https://github.com/mickhansen/dataloader-sequelize/pull/8/files