Skip to content

Allow save method to write unknown objects if they already have an _id property #440

@carsonfarmer

Description

@carsonfarmer

Right now, calling save on an instance that doesn't already exist throws an error. But this need not really be the case if that instance has a valid _id field (which we can check as we do all "saved" instances. Allowing save on unknown instances is useful when we need to create or update an instance, and don't know ahead of time if it will already exist.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions