0
ich einen Trigger mit apoc.trigger.add erstellt:Kann nicht Beziehung erstellen, wenn Add-Trigger in Neo4j
CALL apoc.trigger.add('increase_followings_and_followers',
'UNWIND {createdRelationships} AS rel
WITH rel, STARTNODE(rel) as follower, ENDNODE(rel) AS followed WITH rel, follower, followed
WHERE TYPE(rel)="FOLLOW" and labels(followed)="User" and labels(follower)="User"
SET follower.followings = follower.followings +1, followed.followers= followed.followers+1',
{phase:'after'})
ich bauen socialnetwork, Wenn ein Benutzer eine andere folgen, Trigger wird automatisch erhöhen Folger Nummer und folgende Nummer. Aber es funktioniert nicht, und ich kann neue Beziehung „folllow“ nicht schaffen zwischen zwei Benutzerknoten