Retrieve the relation between this node and a child PID.

def _get_child_relation(self, child_pid):
        """Retrieve the relation between this node and a child PID."""
        return PIDRelation.query.filter_by(
            parent=self._resolved_pid,
            child=child_pid,
            relation_type=self.relation_type.id).one()