How do you unpack nested DBRefs?
I have checked the mongodb documentation but I still do not quite understand how to unpack the alphanumeric value within the brackets.
d = {
"oId" : 567,
"notice" : [
DBRef("noticeId", ObjectId("5f45177b93d7b757bcbd2d55"))
]
}
Expected Output:
oId notice
567 5f45177b93d7b757bcbd2d55