Oh, how is it done though? (For other folks that might be curious) -Ian
On Mon, Jun 15, 2015 at 4:58 PM, Heri Ramampiaro <[email protected]> wrote: > Sorry, forget my previous email. I found out how it is done:-) > > Cheers, > -heri > > >> On Jun 15, 2015, at 4:23 PM, Heri Ramampiaro <[email protected]> wrote: >> >> I am trying to implement a remove record field function that also can handle >> nested fields. >> >> E.g. >> let $r := { >> "id": "2", >> "address": { >> "street": "21 Orlando ct.", >> "city": "Irvine", >> "state": "CA" >> } >> "related": ["VXQuery", "AQL"] >> } >> return remove-field($r, [“address.state”]); >> >> Expected result: >> [ >> { >> "id": "2", >> "address": { >> "street": "21 Orlando ct.", >> "city": "Irvine" >> } >> "related": ["VXQuery", "AQL"] >> } >> ] >> >> My question is how is the parser implemented to access nested field names? >> (Or, where do I find the API for this?) >> >> Thank you. >> >> Best, >> -heri >> >> >> >
