Add ShardMap::GetPropertyId
This commit is contained in:
parent
27459a9eb0
commit
af4f3a5cb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user