Skip to content

Fix replaceById to report an error when id not found #204

Closed
@loay

Description

@loay

Bug or feature request

  • Bug

Description of feature (or steps to reproduce if bug)

when using the methods replaceOrCreate or replacebyid, when the request contains and id that doesn't exist in the db, then an error should be thrown and not create the instance !

Link to sample repo to reproduce issue (if bug)

loopbackio/loopback-datasource-juggler#1171
loopbackio/loopback-datasource-juggler#1210

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions