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 Create Action #93

Open
eliasm307 opened this issue Apr 19, 2023 · 0 comments
Open

Add Create Action #93

eliasm307 opened this issue Apr 19, 2023 · 0 comments

Comments

@eliasm307
Copy link

Since the actions section has "compose" for creating something new from existing data, I think a "create" action should also be added to accommodate creating something from nothing, or something that might not be a direct composition of the inputs e.g. Factory methods. Since only "compose" is included the guide could be misleading as it sounds like compose should be used for all creation actions.

A practical example could be a static factory method for a class e.g.

await Resource.create(config)

I don't thing compose makes sense in such a case.

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

1 participant