I am storing the content retrieved by my article parser by maping it to a variable and then storing it in an array.Now I have a schema with 6 fields, out of which 4 fields are being updated from another source, whereas, the remaining two should be updated from this temporary array. I don't know if this explanation makes any sense so here's the code -https://codesandbox.io/embed/node-http-server-node?fontsize=14&hidenavigation=1&theme=darkThere are some errors and I know the array fields thing for content and source is wrong near bulk.There will be an error showing since I haven't connected the database.Is it possible to update the same document from two different source as I am trying to do here?And how do you put array fields into MongoDB? I doubt I can insert a mapping operation within the bulk function.
Submitted February 18, 2020 at 09:28AM by pappermanfan
No comments:
Post a Comment