Correct usage of xid to upsert with Live uploader

My query is simple & straight forward

{
 test(func: has(Student.courses), first:5) {
  Student.studentId
  Student.xid
 }
}