We don’t support XIDs natively, but we allow some level of support at client level. Therefore, dgraphloader and bulk loader, both maintain a local cache of XID → UID mapping.
If you have already loaded all the XIDs, then you could query for that XID, and mutate the data, using variables. You could also look into upsert operations, which got added recently, which do this atomically.