no need to cook onion separately - if you use raw diced onion in the meatballs, you run the risk of having raw onions in them - unless you cook them for longer in which case you risk overcooking the meatballs!