import { getPayload } from 'payload';
import configPromise from '@payload-config';

async function run() {
  const payload = await getPayload({ config: configPromise });
  const existing = await payload.find({
    collection: 'pages',
    where: { slug: { equals: 'team' }, locale: { equals: 'de' } },
    limit: 1,
  });
  console.log(JSON.stringify(existing.docs[0].content, null, 2).slice(0, 500));
  process.exit(0);
}
run();
