Javascript: Spread and Rest Operators
MongoDB is a document database with the scalability and flexibility that you want with the querying and indexing that you need.
Spread Operator
...
It takes array or object after operator and pull out all elements of array or properties of object and put it in whatever is around that operator.
Rest Operator
It looks like Spread operator ...
. It merge multiple arguments into array. So if you use ...
in the argument list of function, then its the Rest operator