Browsing Data
Learn how to browse and view MongoDB collections in the Data Explorer.
Accessing Data Explorerโ
-
Navigate to Data Explorer:
- Click "Data Explorer" in navigation
- Or go to
/data
-
Select Connection:
- Choose MongoDB connection from vault
- Or enter connection string
- Select database
Viewing Collectionsโ
Collection Listโ
See all collections in your database:
- Collection Names: List of all collections
- Document Counts: Number of documents per collection
- Last Updated: Last modification time
- Quick Actions: View, edit, delete collections
Opening a Collectionโ
-
Click Collection Name:
- Opens collection view
- Shows documents in table format
- Displays first 50 documents
-
Collection Info:
- Total document count
- Collection size
- Index information
View Modesโ
Table Viewโ
Spreadsheet-like view of documents:
- Rows: Each document is a row
- Columns: Document fields as columns
- Sortable: Click headers to sort
- Resizable: Adjust column widths
Best For: Quick overview, comparing documents
Card Viewโ
Formatted card display:
- Cards: Each document as a card
- Formatted: Human-readable format
- Expandable: Click to see full document
Best For: Reading individual documents
JSON Viewโ
Raw JSON structure:
- Formatted JSON: Pretty-printed
- Collapsible: Expand/collapse objects
- Searchable: Find text in JSON
Best For: Developers, debugging, complex structures
Navigating Documentsโ
Paginationโ
Navigate through large collections:
- Page Size: 10, 25, 50, 100 documents per page
- Page Navigation: Previous/Next buttons
- Jump to Page: Go to specific page
- Total Pages: See total page count
Sortingโ
Sort documents by field:
- Click Column Header: Sort ascending
- Click Again: Sort descending
- Multiple Sorts: Sort by multiple fields
Filteringโ
Filter documents:
-
Quick Filter:
- Type in search box
- Searches across all fields
- Real-time filtering
-
Field Filters:
- Click filter icon on column
- Set filter condition
- Apply filter
-
Advanced Filters:
- Build complex queries
- Multiple conditions
- AND/OR logic
Searching Dataโ
Full-Text Searchโ
Search across all fields:
- Search Box: Top of collection view
- Real-Time: Results update as you type
- Highlighted: Matching text highlighted
Field-Specific Searchโ
Search within specific fields:
- Click Field Filter
- Enter Search Term
- Select Operator: equals, contains, starts with, etc.
Advanced Query Builderโ
Build complex queries:
- Multiple Conditions: Add multiple filters
- Operators: equals, not equals, greater than, etc.
- Logic: AND/OR between conditions
- Save Query: Save for reuse
Viewing Document Detailsโ
Document Viewerโ
Click any document to view details:
- Full Document: See complete structure
- Formatted: Human-readable format
- Editable: Click to edit fields
- Actions: Edit, delete, duplicate
Field Valuesโ
View field values:
- Simple Fields: Direct display
- Nested Objects: Expandable sections
- Arrays: List view
- Dates: Formatted dates
- Links: Clickable URLs
Editing Documentsโ
Inline Editingโ
Edit documents directly:
- Click Field: Field becomes editable
- Make Changes: Modify value
- Save: Click save button
- Cancel: Discard changes
Full Document Editorโ
Edit entire document:
- Click "Edit" Button
- Schema-Aware Editor: Helps with structure
- Make Changes: Modify fields
- Save: Save changes
- Validate: Check for errors
Document Actionsโ
Delete Documentโ
Remove document:
- Select Document: Click checkbox
- Click "Delete": Or delete button
- Confirm: Confirm deletion
- Permanent: Cannot be undone
Duplicate Documentโ
Copy document:
- Click "Duplicate": On document
- New Document: Created with same data
- Edit: Modify as needed
- Save: Save new document
Bulk Operationsโ
Operate on multiple documents:
- Select Documents: Check multiple documents
- Choose Action: Delete, update, export
- Apply: Execute on all selected
Schema Detectionโ
Auto-Detectionโ
NetPad automatically detects:
- Field Types: String, number, date, etc.
- Field Names: All field names
- Structure: Nested objects, arrays
- Patterns: Common data patterns
Schema Viewโ
View collection schema:
- Fields: List of all fields
- Types: Field data types
- Required: Which fields are always present
- Examples: Sample values
Best Practicesโ
- Use Filters: Filter before browsing large collections
- Pagination: Use pagination for large datasets
- Search First: Search before scrolling
- Save Queries: Save frequently used filters
- Backup: Export before bulk operations
Next Stepsโ
- Importing Data - Import data from files
- Exporting Data - Export data for analysis