Skip to content

feature: Add a replace parameter for single node additions#12

Open
kezz wants to merge 1 commit intoLuckPerms:mainfrom
kezz:feature/replace
Open

feature: Add a replace parameter for single node additions#12
kezz wants to merge 1 commit intoLuckPerms:mainfrom
kezz:feature/replace

Conversation

@kezz
Copy link
Contributor

@kezz kezz commented Nov 8, 2023

This provides an "atomic" way of performing a replacement on a node without having to make two separate rest calls.

Unsure if there is potentially a better solution, or more value in having a /replace endpoint with a parameter to pick the equality predicate. However, I think this is good as a nice addition for atomic remove/add for most use cases now.

This provides an "atomic" way of performing a replacement on a node without having to make two separate rest calls.
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