Database

[{"key":1,x:[1,2,3,4]},{"key":2,x:[7,8,9]}]

Query

db.collection.aggregate([{$addFields:{x:{"$arrayElemAt":["$x",0]}}}])

Result