I have an interesting requirement - all new users need to be friends with a key user - they can block them in the future if required and they need to be listed as a normal friend for all other purposes.
If I use the client side API calls then this ‘default friend’ will need to accept all the invitations. Is it possible to add a friend on account creation? I have a hook registered for this but I can’t find supporting methods in the runtime to do this.
I’m hoping there is a better way than inserting records in via SQL but can do if need be.
If I do need to delve into the SQL and write to user_edge what needs writing into the “position” column and does the reciprocal record also need to be entered (with source_id and destination_id swapped) or is the state suitable in a single row?