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

Allow adding newly created Elements directly as Relationship to an entity #470

Open
salisdemos opened this issue Aug 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@salisdemos
Copy link
Collaborator

I love to have a possibility to add a newly created entity straight away to another Entity as Relationship.

I my mind is something like:

setItem(data, { attach: { to: 'myOtherStore', id: 'myId', as: 'relationshipName' } })

which then fires a update mutation in the targeted store.
This should also be possible with an Array to add it to several elements

@salisdemos salisdemos added the enhancement New feature or request label Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant