Consider extending BindArgsSchemas #243
bryantabaird
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found myself trying to extend bindArgs schemas, similar to schema extension, so I have a suggestion for the team to consider implementing similar extension functionality as well for bindArgsSchemas
My use case is as follows. I have a resource management URL as follows:
/parent/{parentId}/child/{childId}
.I'm creating a high level client for the
parent
, something like:Assuming
editParent
included an action to theparentClient
, the parent client code would then call:I was planning for the child client to extend from the
parent
, like so:Assuming
editChild
included an action to thechildClient
, the child client code would then call:But the child
bindArgsSchema
is overriding thebindArgsSchema
from the parent. Is this correct? If so, would it be recommended for me to modify theeditChild
function to override and include both? Something like:Or maybe there is another approach that I did not consider. Perhaps I could try to update my child ids to not depend on the parent ids. But this might not always be a viable workaround.
All the same, thank you 🥇
Beta Was this translation helpful? Give feedback.
All reactions