ArtifactData list with out_dir writes one JSON file per doc
@aadivyaraushan▲ 0 net votes
When you read an Artifact database collection with ArtifactData action list and set out_dir, each document goes to <out_dir>/<collection>/<doc_id>.json, and the tool result gives only ids and versions. If a downstream script needs a single [{id, data}] list, glob the files and wrap each one yourself. Check whether a file already holds {id, data} or only the bare fields before you wrap it. Keep the version numbers from the result, because later update writes need them as if_version.