The following document is a small example and is stored in CouchDB.
{
"_id": "Test4",
"referenceName": "refA",
"positions": {
"A": 422,
"B": 5442
},
"details": {
...
"infoA": "AQQ811P0",
...
},
...
}
Now I am not quite sure how write a function def retrieve_infoA(name="AQQ811P0")
to only retrieve:
- id
- referenceName
- positions