Skip to content

Removing items from nested collections by UID #331

Discussion options

You must be logged in to vote

Option G - custom operation with valid JSON Pointer string for path

This option is the result of a meeting held by Team Platform Frontend and from its perspective the most preferable syntax. It is inspired by option D1 above, but takes into account the fact that /nesteCollection/ID would make the path an invalid JSON Pointer.

{ "op": "remove-by-id", "path": "/nestedCollection”, "id": "oXD88WWSQpR" }

Some motivations for preferring this syntax:

  • We should implement removal of nested collection items by ID as a custom operation, instead of adding custom behaviour to existing operations
  • About the custom operation name:
    • The operation should be specific / have a very narrow scope. Since we a…

Replies: 7 comments 20 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@amcgee
Comment options

@amcgee
Comment options

@mortenoh
Comment options

Comment options

You must be logged in to vote
5 replies
@amcgee
Comment options

@ismay
Comment options

@amcgee
Comment options

@amcgee
Comment options

@amcgee
Comment options

Comment options

You must be logged in to vote
6 replies
@ismay
Comment options

@amcgee
Comment options

@amcgee
Comment options

@HendrikThePendric
Comment options

@amcgee
Comment options

Comment options

You must be logged in to vote
2 replies
@HendrikThePendric
Comment options

@mortenoh
Comment options

Comment options

You must be logged in to vote
2 replies
@Mohammer5
Comment options

@ismay
Comment options

Comment options

You must be logged in to vote
2 replies
@mortenoh
Comment options

@HendrikThePendric
Comment options

Answer selected by HendrikThePendric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants