docs: developer guide text updated

This commit is contained in:
Mir Arif Hasan
2022-12-22 22:25:16 +06:00
parent f9de546d14
commit 6b59b9988c
2 changed files with 12 additions and 6 deletions

View File

@@ -13,6 +13,12 @@ export class UserService {
private readonly pubsub: PubSubService,
) {}
/**
* Update a user's information
* @param user User object
* @param updateUserDto Properties to update
* @returns a Either of User or error
*/
async updateUser(user: User, updateUserDto: UpdateUserInput) {
try {
const updatedUser = await this.prisma.user.update({