-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unwindPath only accepts one field #174
Comments
Confirmed, it only takes one argument. You could implement your own unwind and pass the resulting data to this module. We also accept pull requests 👍 |
Thanks for confirmation, since I'm passing results from MongoDB it will be easier to unwind myself and pass through. |
@knownasilya and others, I was looking for this exact functionality. If I have this JSON as an example:
I want to have following output CSV:
I can submit a PR, if everyone agrees with these changes to parameters:
|
Hi ended up unwinding in mongodb first then passing the results but would love to have it in json2csv as well but it's up to the moderators to agree on parameters etc. |
I simplified a little bit the parameters and created a pull request for that. |
More of a questions then issue, does unwindPath option only accept one field?
I've tried to put an array and string array into option but doesn't unwind fields. If I only put one field in then it works. Any idea how you can unwind multiple fields?
Thanks
The text was updated successfully, but these errors were encountered: