• Update user in the database with given id

    Author

    aayushchugh

    Parameters

    • id: string

      this is id of user which will be updated

    • payload: UpdateQuery<User>

      fields which will be updated in the user

    Returns QueryWithHelpers<null | Document<any, BeAnObject, User> & User & IObjectWithTypegooseFunction & {
        _id: ObjectId;
    }, Document<any, BeAnObject, User> & User & IObjectWithTypegooseFunction & {
        _id: ObjectId;
    }, BeAnObject, DocumentType<User, BeAnObject>>

Generated using TypeDoc