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

Suggestion: outputKeys & full should output the property value even if it is in excludeKeys #126

Open
bebsworthy opened this issue Apr 10, 2024 · 0 comments

Comments

@bebsworthy
Copy link

Currently, setting { excludeKeys:['id'] } prevents { outputKeys=['id'] } or { full:true } from working as documented.

The documented behavior for outputKeys is Always print this comma separated keys, with their value, if they are part of an object with any diff while excludeKeys is only to exclude from the comparison.

Use case: We're using the lib to compare a list of object, we do not want to compare the id property which is database generated and has no incidence, but I would like to be able to have it in the output so that the user has a better context to identify which object has changed.

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

1 participant