Place a medium sauce pan over medium high heat. Add the oil and garlic, cook until fragrant. Add the onions and cook until soft, about 10 minutes. Reduce the heat to medium and add the sugar, vinegars, and apple juice.
Continue cooking for 15 minutes or until the liquid has reduced by half and the consistency of the liquid is thick like a syrup.Allow to cool.Keep refrigerated.