Closed Chieze-Franklin closed 1 year ago
Implement middleware that converts URL queries to appropriate objects
a=b
where
{ a: b }
@populate=
populate
@sort=a:asc,b:desc
@limit=10
@page=2
next
prev
meta
Implement middleware that converts URL queries to appropriate objects
a=b
towhere
filters{ a: b }
@populate=
queries to Mongoosepopulate
object@sort=a:asc,b:desc
to sort commands@limit=10
to limit commands@page=2
to pagination commands (includenext
andprev
in themeta
)