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

Add support for additional arguments #25

Open
stackoverfloweth opened this issue Jun 22, 2024 · 1 comment
Open

Add support for additional arguments #25

stackoverfloweth opened this issue Jun 22, 2024 · 1 comment

Comments

@stackoverfloweth
Copy link
Collaborator

When mapping some models it would be nice to support other required arguments in addition to source. This could enable something like mapping a single model from 2 source models or including a parent models id.

@pleek91
Copy link
Contributor

pleek91 commented Jun 22, 2024

I think this use case can easily be solved by making source an object of the required pieces.

Ive used that pattern a decent bit and feels nice.

Do you have a use case in mind where that doesn't feel right to you?

My guess is you're thinking a source that can be mapped to multiple destinations but for one particular mapping an additional piece is required.

Curious how much complexity that would add for something we can leave for userland implementation.

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

2 participants