Access your notes or manage the platform
Register with role and interests
Manage your personal notes securely.
Manage system users (add, edit role, remove, and list all users with pagination).
| Username | Role | Interests | Created At | Actions |
|---|
Specific scenarios required by the technical specification.
Context: User profiles contain a list of interests (e.g., ['chess', 'reading']).
Constraint: Exactly one collection.aggregate() call using $unwind, $group, and $sort. Supported by multikey index userSchema.index({ interests: 1 }).
$lookup
Context: Users write posts stored in a separate Posts collection. Visible to everyone.
Constraint: Single aggregation pipeline with a $lookup stage. Supported by index postSchema.index({ author: 1, createdAt: -1 }).
Separate Posts collection demonstrating list operations and Scenario 2 data.