Reputation: 269
Hey everyone I'm pretty new to meteor and had a question regarding collection workflow.
Is it possible to insert documents only into the client side of a collection, then later fully insert them into the server side of the collection?
Currently I have:
Server side Collection(eg. Posts) -> Publish -> Subscribe -> Client side Collection(Posts) -> Copy to Client only Collection(eg. tempCol) -> Modify Client only Collection(tepmCol) -> Submit and insert into Server Collection (Posts)
What I am trying to do is get rid of the client only collection(tempCol) to something like:
Server side Collection(Posts) -> Publish -> Subscribe -> Client side Collection(Posts) -> Modify data in Client side Collection(Posts) -> Submit and save changes into Server Collection(Posts)
Can I accomplish this through allow/deny rules, then when submitting use a method?
Thank you for the time, LL
Upvotes: 4
Views: 752
Reputation: 759
What about
CollectionName._collection.insert({ });
CollectionName._collection.update({ }, { });
CollectionName._collection.remove({ });
Upvotes: 6