Closed inoyatov closed 5 years ago
+1
The one issue is making sure Meteor collection supports arrayFilters
, which it does not yet according to the linked issue.
The schema validation error is because SimpleSchema package does not yet parse and understand arrayFilter placeholders. The workaround would be to disable validation for each update that uses arrayFilters.
But this is a SimpleSchema issue, so please submit this issue in that repo (or search and +1 existing issue): https://github.com/aldeed/simple-schema-js/issues
I have following document (I cannot change structure of document)
Schema for this document declared as following:
Now I want to add property into Marker.properties of "11st" store. So, in mongo client console I could use positioned filtered operator
$[<idetifier>]
for mongodb update function.However Meteor update function only accepts function as following
according to documenation. First parameter is select, second is modifier. However, as far as I understood
arrayFilters
is third parameter to update function which is not defined in meteor, but I created server method as following:After calling this server side method from client i got following error message:
How I can achieve same result as in meteor console? Can some one help? Is there is solution for that? P.S: My mongo db 4.0.0 and Meteor 1.7.0.3