Implement mongo-like querying for fields of a subdocument using dot notation