Peel and coarsely chop the onions, peel and crush the garlic, add to the pot.
Core and roughly chop the unpeeled apples, add to the pot.
Bottle in sterilised preserving jars, apply seals and process in a water bath for about 45 minutes. Remove to a board and allow to cool. Check the seals and store in a cool dry place.