Make a copy of every You & Me connection

Checks if you don't have a connection inside your own repo and create a copy of a new connection you received

at.youandme.connection
Lexicon
at.youandme.connection
Operations
Record created

Steps (4)

Conditiongate
  • Continue only if event.commit.record.subject equals {{self}} - Someone connected with you
Search recordsconnected- Search if you already have a connection with that person inside your repo
Collection
at.youandme.connection
In repo
{{self}}
Where
subject equals {{event.did}}
Conditionbranch
  • If connected.found equals false - Couldn't find a connection
Then

Create a recordAction 1mirrorConnection

Target Collection
at.youandme.connection
Record Template
{
  "subject": "{{event.did}}",
  "createdAt": "{{now}}"
}