Insert document only client side

Hi everyone, I'm pretty new to meteorites and have a question about the collection workflow.

Is it possible to insert documents only on the client side of the collection and then completely insert them into the server side of the collection?

I currently have:

Server side collection (like posts) -> Publish -> Subscribe -> Client assembly (Posts) -> Copy only to client collection (like tempCol) -> Change only for clients Collection (tepmCol) -> Submit and Paste to Server Collection (Posts)

What I'm trying to do is get rid of the client collection (tempCol) to something like:

Server Side Build (Messages) β†’ Publish β†’ Subscribe β†’ Client Build (Messages) β†’ Change Client Side Data Collect (Messages) β†’ Submit and Save Changes in Server Build (Posts)

Can I accomplish this with allow / deny rules and then use the method when submitting?

Thanks for being LL

+3


source to share


1 answer


What about



CollectionName._collection.insert({ });

CollectionName._collection.update({ }, { });

CollectionName._collection.remove({ });

      

+3


source







All Articles