The XIAO_SAMD21 schematic shows a diode, but it may not be implemented. The following post may be helpful.