-
-
Notifications
You must be signed in to change notification settings - Fork 790
Open
Description
The get() method for the base client service does not enforce that the ID is not defined.
See:
| get(id: Id, params: Params = {}) { |
The update() method enforces this as you would expect.
See:
| _update(id: NullableId, data: D, params: Params = {}) { |
Without enforcing that the get() method has an ID, it just returns a random record;
const user = await app.service('users').get();
// user is defined because it basically did a find();Metadata
Metadata
Assignees
Labels
No labels