What is MongoDB Compass?
Answer
MongoDB Compass is the official GUI (Graphical User Interface) for MongoDB — a visual tool for exploring and manipulating your data without writing shell commands. Key features: (1) Schema visualization: visual representation of document structure and data types, showing distribution of values for each field — helps understand data shape; (2) CRUD operations: insert, edit, and delete documents with a visual editor; (3) Aggregation pipeline builder: build complex aggregation pipelines with a visual stage-by-stage editor and real-time preview of results; (4) Index management: view existing indexes, create new ones, and see their usage statistics; (5) Query bar: build queries with syntax validation and auto-completion; (6) Explain plan viewer: visual display of query execution plan — see if indexes are used, identify bottlenecks; (7) Performance insights: real-time server performance metrics; (8) MongoDB Shell (mongosh): embedded shell in Compass for running commands; (9) Connection management: save and manage multiple database connections. Compass is free and available for Windows, Mac, and Linux. It connects to any MongoDB deployment: local, cloud, Atlas. Alternative tools: Studio 3T (paid, more powerful), NoSQLBooster, Robo 3T (deprecated in favor of Studio 3T). Most developers use Compass for visual exploration and switch to mongosh or drivers for scripting.