Prisma otrzymuj zapytanie o pojedyncze dane

const lastLocations = await db.locations.findMany({
    where: {
      company,
    },
    distinct: ['user'],
    orderBy: {
      id: 'desc',
    },
  });
Anupam Baidya