Closed asenci closed 1 year ago
Hello, @pteich can you merge this PR please? Ability to select some fields is a very useful option. It would be nice to keep it here, instead of building from fork.
Regards
Thanks for the ping @andrii29 I'll have a look and review it.
lgtm and is a useful feature. It could maybe nice to use the flatten
function in a recursiv way to also address objects with deeper dimensions.
@pteich sorry, has been a while since I implemented this, but IIRC it should be processing the fields recursively (the very nested
test case for example).
This PR flattens the search result so the nested objects are accessible via "obj.nestedField" on the fields list.
The original object is retained in the original key for backwards compatibility (will result in a "map:[...]" value in the csv output).
See test cases for examples.
Fixes issue #16