#pragma once #include #include #include #include #include #include "query_engine/util.hpp" #include "query_engine/code_generator/cypher_state.hpp" #include "query_engine/code_generator/query_action_data.hpp" #include "query_engine/traverser/code.hpp" #include "query_engine/exceptions/errors.hpp" using ParameterIndexKey::Type::InternalId; using Direction = RelationshipData::Direction; namespace { auto update_properties(const QueryActionData &action_data, const std::string &name) { std::string code = ""; auto entity_data = action_data.get_entity_property(name); for (auto &property : entity_data.properties) { auto index = action_data.parameter_index.at(ParameterIndexKey(name, property)); code += code_line(code::set_property, name, property, index); } return code; } }