import { prisma } from "./prisma" ; export async function getDocumentPreviewsByIds ( documentIds ) { return await prisma . document . findMany ( { where : { id : { in : documentIds } } , include : { activeSnapshot : true } , } ) ; }