import { whereHasSubquery } from '../relation/where-has' export function whereDoesntHave(query: any, Model: any, path: string, callback?: (q: any) => void) { if (!Model) return query const relations = path.split('.') whereHasSubquery(query, Model, relations, callback, 'whereNotExists') return query }