Enchantment advancement

Im confused how the enchanted_item trigger works. A custom advancement for enchanting an item. I can not find any tutorials or sources regarding this other then the wiki. Here is what i am trying to use

Continue to help post