fix(import): COMPASS-4206: Fix type detection and export formatting. #1925
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
.json
. a093933Before this would populate the projection as:
Now you can specify full paths for more control over what is actually returned:
Use case: (See a 1M line csv imported that is 300 fields wide and you only want 2).
fix(export): Add tests to make sure csv's have correct headers. df70ff9
fix(export): Headers should be dotnotation for nested object paths.
Testing
Dicogs CSV
https://www.npmjs.com/package/discogs-data-tools
mongoexport
CSV of all label names in the dicogs database:BitTorrent Data Set CSV
Andy Pavlo's BitTorrent Data Set
Export test.people with only
address.city
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes
Backport Needed
Patch (non-breaking change which fixes an issue)
Minor (non-breaking change which adds functionality)
Major (fix or feature that would cause existing functionality to change)