Fix bug in alias mappings (#1252)
This commit is contained in:
parent
7f7f3adfcb
commit
aec4c3dd2b
@ -1,8 +1,8 @@
|
||||
{
|
||||
"dbms.components": "mgps.components",
|
||||
"apoc.util.validate": "mgps.validate",
|
||||
"db.schema.nodeTypeProperties":"schema.node_type_properties",
|
||||
"db.schema.relTypeProperties":"schema.rel_type_properties",
|
||||
"db.schema.nodeTypeProperties": "schema.NodeTypeOroperties",
|
||||
"db.schema.relTypeProperties": "schema.RelTypeProperties",
|
||||
"apoc.coll.contains": "collections.contains",
|
||||
"apoc.coll.partition": "collections.partition",
|
||||
"apoc.coll.toSet": "collections.to_set",
|
||||
@ -23,5 +23,4 @@
|
||||
"apoc.refactor.cloneSubgraph": "refactor.clone_subgraph",
|
||||
"apoc.refactor.cloneSubgraphFromPath": "refactor.clone_subgraph_from_path",
|
||||
"apoc.label.exists": "label.exists"
|
||||
|
||||
}
|
||||
|
@ -1331,15 +1331,17 @@ std::optional<std::pair<ModulePtr, const T *>> MakePairIfPropFound(const ModuleR
|
||||
if (!result) {
|
||||
return std::nullopt;
|
||||
}
|
||||
auto [module_name, prop_name] = *result;
|
||||
auto [module_name, module_prop_name] = *result;
|
||||
auto module = module_registry.GetModuleNamed(module_name);
|
||||
auto prop_name = std::string(module_prop_name);
|
||||
if (!module) {
|
||||
// Check for possible callable aliases.
|
||||
const auto maybe_valid_alias = gCallableAliasMapper.FindAlias(std::string(fully_qualified_name));
|
||||
if (maybe_valid_alias) {
|
||||
result = FindModuleNameAndProp(module_registry, *maybe_valid_alias, memory);
|
||||
auto [module_name, prop_name] = *result;
|
||||
auto [module_name, module_prop_name] = *result;
|
||||
module = module_registry.GetModuleNamed(module_name);
|
||||
prop_name = std::string(module_prop_name);
|
||||
if (!module) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user