generalize dnode interfaces for mongoose models