Function updateUserByIdService
- updateUserByIdService(id: string, payload: UpdateQuery<User>): QueryWithHelpers<null | Document<any, BeAnObject, User> & User & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, Document<any, BeAnObject, User> & User & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, BeAnObject, DocumentType<User, BeAnObject>>
-
Parameters
-
id: string
-
payload: UpdateQuery<User>
Returns QueryWithHelpers<null | Document<any, BeAnObject, User> & User & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, Document<any, BeAnObject, User> & User & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, BeAnObject, DocumentType<User, BeAnObject>>
Update user in the database with given id
Author
aayushchugh