Kindly I need a way to push data from mongodb to S3 bucket in csv format, the issue is that the data has a huge number of objects and arrays, so it is not recommended to have a script to take it field by field, and when the code is like
"$out": {
"s3": {
"bucket": "testmdbbucket",
"region": "eu-central-1",
"filename": "secairbnb",
"format": {
"name": "csv"
}
}
}
it gives an error in S3 any help with that will be really appreciated, thanks in advance