Skip to content

Commit ecf65f8

Browse files
committed
Fix ActorLoader cypher query
1 parent 2ca061b commit ecf65f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/user/user.repository.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ export class UserRepository extends DtoRepository<typeof User, [Session | ID]>(
4444
.query()
4545
.raw('', { ids })
4646
.matchNode('user', 'User')
47-
.where({ 'user.id': inArray('ids', true) })
47+
.where({ 'user.id': inArray('$ids', true) })
48+
.with('user as node')
4849
.apply(this.hydrate(session))
4950
.union()
5051
.matchNode('agent', 'SystemAgent')
51-
.where({ 'agent.id': inArray('ids', true) })
52+
.where({ 'agent.id': inArray('$ids', true) })
5253
.return<{ dto: UnsecuredDto<User | SystemAgent> }>(
5354
merge('agent', {
5455
__typename: '"SystemAgent"',

0 commit comments

Comments
 (0)