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

Easier assignment of initial Entity data #1

Closed
codediodeio opened this issue Dec 4, 2021 · 3 comments
Closed

Easier assignment of initial Entity data #1

codediodeio opened this issue Dec 4, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@codediodeio
Copy link

Currently, you must assign each entity property manually:

    let album = repository.createEntity()
    album.artist = "Mushroomhead"

However, it would be nice to create this initial data with an existing object (like a request body). One potential solution is an optional arg to the createEntity method:

    let data = { artist:  "Mushroomhead" }
    let album = repository.createEntity(data)
@guyroyse
Copy link
Contributor

guyroyse commented Dec 6, 2021

I like this idea a lot. I'll get it into the backlog.

@guyroyse guyroyse added this to Backlog in Main Board via automation Dec 9, 2021
@guyroyse guyroyse added the enhancement New feature or request label Dec 9, 2021
@guyroyse guyroyse moved this from Backlog to To do in Main Board Dec 9, 2021
@guyroyse
Copy link
Contributor

I'll start working on this next week and will have it out before Christmas Eve.

@guyroyse guyroyse moved this from To do to Doing in Main Board Dec 17, 2021
@guyroyse guyroyse self-assigned this Dec 21, 2021
Main Board automation moved this from Doing to Done Dec 21, 2021
@guyroyse guyroyse reopened this Dec 21, 2021
Main Board automation moved this from Done to To do Dec 21, 2021
@guyroyse guyroyse moved this from To do to Doing in Main Board Dec 21, 2021
@guyroyse guyroyse moved this from Doing to Review in progress in Main Board Dec 22, 2021
guyroyse added a commit that referenced this issue Dec 23, 2021
Better entity creation and saving, change to syntax on returns from Search, resolves #1
Main Board automation moved this from Review in progress to Done Dec 23, 2021
@guyroyse
Copy link
Contributor

I pushed this to NPM a couple of hours ago. It is included in version 0.1.5.

guyroyse pushed a commit that referenced this issue Apr 20, 2022
Recoded the `execute` function of the client (BETA)
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
No open projects
Development

No branches or pull requests

2 participants