Add useMaster to FindOptions<T>

This commit is contained in:
Martijn
2018-05-18 14:48:47 +08:00
committed by GitHub
parent 0e3cd2e17c
commit 48a6cc8ee5

View File

@@ -3366,6 +3366,13 @@ declare namespace sequelize {
* Throw EmptyResultError if a record is not found
*/
rejectOnEmpty?: boolean;
/**
* Force the query to use the write pool
*
* Defaults to false
*/
useMaster?: boolean;
}
type AnyFindOptions = FindOptions<any>;