Add ShardMap::GetPropertyId

This commit is contained in:
Tyler Neely 2022-08-31 14:24:20 +00:00
parent 27459a9eb0
commit af4f3a5cb5

View File

@ -172,6 +172,14 @@ struct ShardMap {
return ret;
}
std::optional<PropertyId> GetPropertyId(std::string &property_name) {
if (properties.contains(property_name)) {
return properties.at(property_name);
} else {
return std::nullopt;
}
}
};
} // namespace memgraph::coordinator