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

Added dot notation support for nameAs option in populate & dePopulate hooks #107

Merged
merged 1 commit into from
Jan 18, 2017

Conversation

eddyystop
Copy link
Collaborator

  • { _include: ['post.a','post.b'], post: { a:[...], b:{...} }} will depopulate to { post: {} }.
  • There is no reasonable way to determine it that post:{} should be deleted.
  • The dev needs a custom hook to do that, perhaps wrapping dePopulate.

… hooks

- { _include: ['post.a','post.b'], post: { a:[...], b:{...} }} will
depopulate to { post: {} }.
- There is no reasonable way to determine it that post:{} should be deleted.
- The dev needs a custom hook to do that, perhaps wrapping dePopulate.
@eddyystop eddyystop merged commit 88a0a9a into master Jan 18, 2017
@eddyystop eddyystop deleted the populate-nameAs branch January 18, 2017 16:29
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

Successfully merging this pull request may close these issues.

1 participant