Skip to content

Using $save $update and $delete shortcuts #1065

@nicooprat

Description

@nicooprat

Describe the feature

Hi there,

In vuex-orm we can use $ prefixed methods on entities. It looks like it doesn't exist in pinia-orm. It's not mandatory as it's possible todo it differently, but it makes the migration a bit longer.

Example: https://vuex-orm.org/guide/data/inserting-and-updating.html#save-method

const user = new User()
user.name = 'John Doe'
user.$save()

Is it removed on purpose? Do you plan to add it? Or is there an existing alternative I missed?

Thanks

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions