add ConnectionsAPI and add parentId the document