Here’s what I get in the console.log
[
“9NCNPGH8F5MWNzjkA”,
“rn8Z57NsEYse7nYTo”
]
Meantime I also added simpleSchema and I noticed there is no Array as a Type. I can send strings, booleans, numbers and object. I guess I have to turn that array with label ids into an object? How would I do that?
Well, the thing is I am not getting an error. My array is simply not written into the labels field of the post.
In this case I am not trying to do an update, I am trying to create a new post.
So I have a form to fill data for the Post and I’m iterating over all the labels.
Then, in the addPost.Events I get all the values from the inputs, check which labels are checked by the user and send that info in the Posts collection.