Skip to content

operation hook loaded has wrong context for find() in 2.x #1071

Description

@benkroeger

the context object provided to loaded operation hook includes an instance property but no data property.
https://github.com/strongloop/loopback-datasource-juggler/blob/2.x-latest/lib/dao.js#L1723

All other loaded hooks provide data with the context object so that one could manipulate the raw data before a model instance is created.

the current master (3.x alpha) has this fixed already

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions