Skip to content

Add Create Action #93

Open
Open
@eliasm307

Description

@eliasm307

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions