Skip to content

Commit e5aad4a

Browse files
committed
Fix missing ToolUsage.creator cypher hydration
1 parent a2c5362 commit e5aad4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/tools/tool-usage/tool-usage.neo4j.repository.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,17 @@ export class ToolUsageRepository extends DtoRepository(ToolUsage) {
3737
relation('out', '', 'tool'),
3838
node('tool', 'Tool'),
3939
])
40+
.match([
41+
node('node'),
42+
relation('out', '', 'creator'),
43+
node('creator', 'Actor'),
44+
])
4045
.apply(matchProps({ nodeName: 'tool', outputVar: 'toolProps' }))
4146
.return<{ dto: UnsecuredDto<ToolUsage> }>(
4247
merge('node', {
4348
container: 'container',
4449
tool: 'toolProps',
50+
creator: 'creator { .id }',
4551
}).as('dto'),
4652
);
4753
}

0 commit comments

Comments
 (0)