Database

[{"_id":{"A":"123","B":"101"}},{"_id":{"A":"456","B":"110"}}]

Query

db.collection.aggregate([{$project:{"_id.B":1}}])

Result