Added a functionality to fetch all first level relations of a document. The implementation need some revisions and care in order to be merged