Convenient method to get a specific document.type
Merge pull request #3 from karmats/mats-fix-branch

Convenient method to get a specific document.type