#!/usr/bin/env node require('dotenv').config(); const mongoose = require('mongoose'); async function checkStructure() { await mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost:27017/tractatus_dev'); const BlogPost = mongoose.connection.db.collection('blog_posts'); const article = await BlogPost.findOne({ status: 'pending_review' }); if (article) { console.log('\n=== ARTICLE STRUCTURE ===\n'); console.log(JSON.stringify(article, null, 2)); } await mongoose.connection.close(); } checkStructure();