Cut avocado into cubes. Add chopped onion and hard cooked egg. Moisten with mayonnaise and marinate in refrigerator.