src/postgres/third-party-extensions/documentdb/sample-data/README.md
This directory contains sample JavaScript files that initialize a DocumentDB instance with demo data. The data represents a simple e-commerce application with users, products, orders, and analytics.
01-users.js)Contains sample user accounts with the following structure:
02-products.js)Contains sample product catalog with:
03-orders.js)Contains sample order data including:
04-analytics.js)Contains sample analytics and reporting data:
All sample data is inserted into the sampledb database to keep it separate from any existing data.
These files are automatically executed when the DocumentDB container starts (unless --skip-init-data or SKIP_INIT_DATA=true is supplied). They can also be run manually using mongosh:
mongosh localhost:10260 -u username -p mypassword --authenticationMechanism SCRAM-SHA-256 --tls --tlsAllowInvalidCertificates --file 01-users.js
This sample data provides a foundation for testing queries, exploring DocumentDB features, and building applications.