JavaScript Meteor js, how to get side effect of updating whole client side document meteor shower side effects

I have a Meteor method that I call from the client, which in turn updates all fields in a single document. In the last line of code below I try to immediately run the same update on the client to get the immediate side effects (it assumes the update will go through). The trouble is I get:

update failed: Access denied. In a restricted collection you can only update documents, not replace them. Use a Mongo update operator, such as '$set'

when trying to do that. I don't want to update a single field, I want to update the whole document. Is there a way to do this properly?

entry = {
    title: title
    text: text
    tags: entry.tags
    mode: $('#mode').val()
    file_ids: entry.file_ids
}

eid = Session.get('entryId')
entry._id = eid if eid

context = Session.get('context')
Meteor.call('saveEntry', title, entry, context)
Entries.update({_id: entry._id}, entry)
Answer:1

I'm trying to create a select list control that supports data with a tree structure and has typeahead capability. The data looks like this: Category -> SubCategory Category2 -> ...

I'm trying to create a select list control that supports data with a tree structure and has typeahead capability. The data looks like this: Category -> SubCategory Category2 -> ...

  1. typeahead select list
  2. typeahead select dropdown
  3. typeahead select only from list

I'm using the Twitter oembed api, and now have the following code on my page: <div class='row'> <iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" ...

I'm using the Twitter oembed api, and now have the following code on my page: <div class='row'> <iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" ...

  1. center twitter embed
  2. center twitter embed wordpress
  3. centre twitter embed

If I try to extend an entity in Breeze via constructor with something like: breeze.EntityManager('ServiceUrl').metadataStore.registerEntityTypeCtor( 'customer', function () { this.orders = ko....

If I try to extend an entity in Breeze via constructor with something like: breeze.EntityManager('ServiceUrl').metadataStore.registerEntityTypeCtor( 'customer', function () { this.orders = ko....

I am creating an object var testobj=function(x) { var b,c; var a=x; var init=function(d,e,f) { a=d; b=e; c=f; }; return{ init:init, b:...

I am creating an object var testobj=function(x) { var b,c; var a=x; var init=function(d,e,f) { a=d; b=e; c=f; }; return{ init:init, b:...