I have a JSON "aggregate" file that I want to split up and ingest as multiple documents into MarkLogic using mlcp.
I want to transform the content during ingestion using javascript.
My JSON file looks something like this:
{
"type": "FeatureCollection",
"features": [
{blobA}, {blobB}, {blobC} ......
]
}
...and I want to run this file through MLCP so that each document contains an item in the array.
i.e. One document will contain {blobA}, another will contain {blobB}, and another will contain {blobC}....and so forth.
How do I write my custom .sjs transform module?