How to map _doc to mongodb embedded document's ref field

I am unable to query the embedded document referencing field’s parent document. Resolver code will be shared if required.