Skip to content
#

collections

Here are 730 public repositories matching this topic...

tjramage
tjramage commented Aug 3, 2019

I have noticed that when calling Collection.update with { multi: true } set as an option, the collection.before.update hook is called once per document, however, the modifier parameter is the same object that was used in the previous iteration.

This is dangerous if we are setting modifier values based solely on the individual properties of the document we are currently iterating over.

majdal
majdal commented Apr 18, 2019

I'm trying to find out how to fit vue-mc into my app's architecture, and the docs are helpful, but maybe I am missing something obvious:

In the Vue docs data section, it reads:

A rule of thumb is that data should just be data - it is not recommended to observe objects with their own stateful behavior.

Where should I store my model instance otherwise?

Improve this page

Add a description, image, and links to the collections topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the collections topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.