Skip to content

Commit 0062bc7

Browse files
HCK-12556: Technical name property in relationships with coupling and naming convention (#46)
1 parent 74594e9 commit 0062bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forward_engineering/generateContainerScript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const generateIndexes = indexesData => {
6060
};
6161

6262
const generateEdge = (from, to, relationship, edgeData) => {
63-
const edgeName = transformToValidGremlinName(relationship.name);
63+
const edgeName = transformToValidGremlinName(relationship.code || relationship.name);
6464
const propertiesScript = addPropertiesScript(relationship, edgeData);
6565

6666
return `${from}.addE(${JSON.stringify(edgeName)}).\n${DEFAULT_INDENT}to(${to})${propertiesScript}`;

0 commit comments

Comments
 (0)