Getting a error inserting in to a Meteor Collection

前端 未结 2 1558
天涯浪人
天涯浪人 2021-01-05 05:39

I am starting to work with Meteor and I am running in to my first issue. I am trying to insert a item in to my collection. I get the below console log error. Can someone hel

2条回答
  •  清歌不尽
    2021-01-05 06:18

    To create a local-only collection:

    MyLocalCollection = new Collection(null);

    (reference doc here)

    About "_collection":

    _collection is an undocumented property that behaves strangely in many cases. You might prefer not to use it.

    About manipulating only the local cache of a client-server collection:

    There is no way to do this directly. However, it is very easy to create a dynamic local mirror of an existing collection (in my experience, this is the way to go for any complex UI). See this post.

提交回复
热议问题