Skip to content
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

Exclude specific fields #19

Open
timvol opened this issue May 6, 2020 · 1 comment
Open

Exclude specific fields #19

timvol opened this issue May 6, 2020 · 1 comment

Comments

@timvol
Copy link

timvol commented May 6, 2020

Sorry for my ignorance, but how can I exclude a specific field from being exported? In my case, I want exclude the "_id" field because it's automatically generated. Is it supported?

@kkomaragiri
Copy link

@timvol Update this line const omitted = new Set(['__v']);
to
this const omitted = new Set(['__v', '_id']);
if you want to remove _id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants