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

[Feature Request] Add Pick and Omit to the result methods #101

Closed
danielo515 opened this issue Oct 26, 2023 · 1 comment · Fixed by #102 or #103 · May be fixed by #303
Closed

[Feature Request] Add Pick and Omit to the result methods #101

danielo515 opened this issue Oct 26, 2023 · 1 comment · Fixed by #102 or #103 · May be fixed by #303
Assignees
Labels
bug Something isn't working

Comments

@danielo515
Copy link
Owner

danielo515 commented Oct 26, 2023

Describe the feature you want
I want to be able to provide to the result methods a list of fields to include when transforming them into frontmatter string or

Wanted API

tR += result.asFrontmatterString({omit:['code']})

Expected behavior
Code should ommited when transforming to frontmatter string

Additional context
Will be very useful to re-use the same sets of results on several contexts

@danielo515 danielo515 added the bug Something isn't working label Oct 26, 2023
@danielo515 danielo515 self-assigned this Oct 26, 2023
@danielo515
Copy link
Owner Author

This is not a bug, it should be a feature request. Currently none of the Result methods admit pick or omit, so they are just silently ignored.

@danielo515 danielo515 changed the title [BUG] Pick and Omit are not being used in frontMatterString [Feature Request] Add Pick and Omit to the result methods Oct 26, 2023
danielo515 added a commit that referenced this issue Oct 26, 2023
this also includes the objectSelect utility and it's tests
fixes #101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment