mongoose icon indicating copy to clipboard operation
mongoose copied to clipboard

sugar syntax to declaring views

Open sibelius opened this issue 5 years ago • 8 comments

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

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

sibelius avatar Mar 22 '19 17:03 sibelius