Automattic / Automattic/mongoose

sugar syntax to declaring views

Open
#7,633 8 comments 3 reactions 0 assignees View on GitHub
new feature
Dominant language
JavaScript
Stars
27.5k
Forks
4k
Avg merge
2d 5h
Merged PRs (30d)
32

Description

**Do you want to request a *feature* or report a *bug*?**
feature

**What is the current behavior?**
a mongoose syntax to create views

**What is the expected behavior?**
a mongoose syntax to create views

it could be similar to mongoose.Schema

maybe

```jsx
mongoose.View({
name: '',
viewOn: '',
pipeline: [],
});
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing mongoose.Schema API and the proposed mongoose.View shape in the issue. Compare the requested name, viewOn, and pipeline fields with MongoDB view requirements, then define the public API and acceptance criteria before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.