Collection upsert key values of passed in object
<p>This Meteor server code tries to upsert all the <code>key:value</code> pairs in <code>param</code> but instead it upsert(ed) the key as <code>param</code>.<br>
Prefere with out a loop. How can it be done so that the keys of <code>param</code> is upserted and not the key "param"? Thanks</p>

<pre><code>let param = {a: '1', b: '2'};
myCollection.upsert({param}, {param});

meteor:PRIMARY&gt; db.myCollection.find().pretty()

//now
_id: "...",
param: {a: '1', b: '2'};

//desired
_id: "..."
a: 1,
b: 2
</code></pre>