def upsert_relations(self, relations: List[Relation]) -> None:
        """
        Upsert relations in the graph.

        Args:
            relations (List[Relation]): Relations to upsert

        """
        for r in relations:
            self.structured_query(
                """
                WITH $data AS row
                MERGE (source {id: row.source_id})
                ON CREATE SET source:Chunk
                MERGE (target {id: row.target_id})
                ON CREATE SET target:Chunk
                MERGE (source)-[r:`"""
                + r.label
                + """`]->(target)
                SET r+= removeKeyFromMap(row.properties, '')
                RETURN count(*)
                """,
                param_map={"data": r.dict()},
            )

        Upsert relations in the graph.

        Args:
            relations (List[Relation]): Relations to upsert

        
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/base_property_graph.py