diff --git a/libs/shared/lib/querybuilder/model/graphology/metaAttributes.ts b/libs/shared/lib/querybuilder/model/graphology/metaAttributes.ts index 6a6a279f319338ac9f24097b1ecf9cbabe7b2f45..4c34d0884ba11b1602fcb13596f35e0b1cdcee00 100644 --- a/libs/shared/lib/querybuilder/model/graphology/metaAttributes.ts +++ b/libs/shared/lib/querybuilder/model/graphology/metaAttributes.ts @@ -3,8 +3,8 @@ import { Handles, QueryElementTypes } from '../reactflow'; import { QueryGraphEdgeAttribute, QueryGraphEdgeHandle, QueryGraphNodes } from './model'; const metaAttribute: Record<string, QueryGraphEdgeAttribute> = { - '(# conn)': { - attributeName: '(# conn)', + '(# Connection)': { + attributeName: '(# Connection)', attributeType: 'float', attributeDimension: 'numerical', }, diff --git a/libs/shared/lib/querybuilder/model/graphology/utils.ts b/libs/shared/lib/querybuilder/model/graphology/utils.ts index 11f21580a6c4b4b1b01c800f1249cb400801c47f..c2d3ae3996cbbd0d28469e7900a9d85b4d7956ff 100644 --- a/libs/shared/lib/querybuilder/model/graphology/utils.ts +++ b/libs/shared/lib/querybuilder/model/graphology/utils.ts @@ -56,7 +56,7 @@ export class QueryMultiGraphology extends Graph<QueryGraphNodes, QueryGraphEdges attributes.attributes = attributes.attributes || []; - // Add to the beginning the meta attributes, such as (# conn) + // Add to the beginning the meta attributes, such as (# Connection) attributes.attributes = [...checkForMetaAttributes(attributes).map((a) => ({ handleData: a })), ...attributes.attributes]; return attributes; diff --git a/libs/shared/lib/querybuilder/query-utils/query2backend.ts b/libs/shared/lib/querybuilder/query-utils/query2backend.ts index e65308ca822c2a400e3ae26ec6f60120eb6fa383..fc1aa99427b78d660ee900b6024a3d0016ffbe0c 100644 --- a/libs/shared/lib/querybuilder/query-utils/query2backend.ts +++ b/libs/shared/lib/querybuilder/query-utils/query2backend.ts @@ -139,7 +139,7 @@ export function calculateQueryLogic( if (!connectionToInputRef.attributes?.sourceHandleData) throw Error('Malformed Graph! Logic node is connected but has no sourceHandleData'); // Is connected to entity or relation node - if (connectionToInputRef.attributes.sourceHandleData.attributeName === '(# conn)') { + if (connectionToInputRef.attributes.sourceHandleData.attributeName === '(# Connection)') { return ['Count', `@${connectionToInputRef.attributes.sourceHandleData.nodeId}`]; } return `@${connectionToInputRef.attributes.sourceHandleData.nodeId}.${connectionToInputRef.attributes.sourceHandleData.attributeName}`;