diff --git a/src/query/v2/plan/operator.cpp b/src/query/v2/plan/operator.cpp index 20425de6a..4a512fcd6 100644 --- a/src/query/v2/plan/operator.cpp +++ b/src/query/v2/plan/operator.cpp @@ -664,11 +664,10 @@ class DistributedScanByPrimaryKeyCursor : public Cursor { }); for (auto &result : get_prop_result) { - auto properties = result.props; // TODO (gvolfing) figure out labels when relevant. msgs::Vertex vertex = {.id = result.vertex, .labels = {}}; - id_to_accessor_mapping_.emplace(result.vertex, VertexAccessor(vertex, properties, &request_router)); + id_to_accessor_mapping_.emplace(result.vertex, VertexAccessor(std::move(vertex), std::move(result.properties), &request_router)); } }