• This will find a user from the database with matching username or email

    Author

    aayushchugh

    Parameters

    • email: string

      email of the user

    • username: string

      username of 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