I have a collection of documents, and there is one thing that is common for all documents - an ID field that is nested.
Document for example:
{
"_id": <generated guid>
"item": {
"product": {
"id": <guid>
.. more fields
}
},
"source": "Good Store"
}
I would like to set (at creation) the _id
guid to be the guid that inside the product's scope. Is that possible?
I tried to search for it and didn't found an answer.
When I tried to map the object (using C#), I got an error that indicates that I can't map a nested field to the Id field.