© 2026 Hedgehog Software, LLC
const result = yield* Effect.tryPromise( () => db.query.productUniqueId.findMany( { // ...options, where: ( productUniqueId, { and, eq } ) => ( and( eq( productUniqueId.type, type ), eq( productUniqueId.product.outlets.outlet.id, outletId), ) ), with: { product: { columns: {}, with: { outlets: { columns: {}, with: { outlet: { columns: { id: true, name: true } } } } } } } } ) )
TS2551: Property product does not exist on type