(where: FilterQuery<T>)
| 74 | |
| 75 | /** @internal */ |
| 76 | export function validateEmptyWhere<T>(where: FilterQuery<T>): void { |
| 77 | if (Utils.isEmpty(where) && !Raw.hasObjectFragments(where)) { |
| 78 | throw new Error(`You cannot call 'EntityManager.findOne()' with empty 'where' parameter`); |
| 79 | } |
| 80 | } |
no test coverage detected