Skip to content

should merge not just be called update? #1

Description

@geertbrit

If I'm reading the code correctly merge does a partial update, whereas update requires all fields to be present as is the normal CouchDB way.

However, calling model.update within the context of SailsJS, one would expect 'partial update' functionality. This is the implementation of all other adapters afaik? (a guess to be honest).

If correct, wouldn't it make sense to rename model.merge to model.update?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions