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

Deep PATCHing is not possible/easy #1

Open
xurei opened this issue Aug 31, 2018 · 2 comments
Open

Deep PATCHing is not possible/easy #1

xurei opened this issue Aug 31, 2018 · 2 comments
Assignees

Comments

@xurei
Copy link
Owner

xurei commented Aug 31, 2018

Entity {
    @arrayProp({items: SubEntity})
    subs: SubEntity[];
}

SubEntity {
    name: string;
    value: number;
}

PATCH with { "subs.0.value": 42 } or similar should be possible. It's not with the default behaviour.

Solution: one of these (non-exhaustive)

  • Maybe create some behaviours ?
  • Allow a persist() hook ?
  • Use preSend ?
@xurei
Copy link
Owner Author

xurei commented Oct 1, 2018

The persist() hook has been created, however it's still up to the developer to write the expected behavior.
We could add a bunch of different, pre-defined persist() behaviors that the dev would just select from a list.

@xurei xurei self-assigned this Oct 1, 2018
@xurei
Copy link
Owner Author

xurei commented Jan 30, 2019

I made some progress in 7448c5d,
it is now possible to GET and POST a submodel. PATCHing should follow soon...

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