How to update all occurrences of the nick when the nick is modified in userProfile

0

I have a structure where a user stores their favorite users and this field repeats some fields like nick, level and photo.

When a user modifies their nick I want to modify it in all the favorite nodes of the users that have this as a favorite and where the nick is also.

I have the following code but it is not enough to get to the nodes that interest me.

What is the correct query to do what I want? And since we are if you tell me how to get the value of the unknown route for the update, I would greatly appreciate it.

    
asked by DavidMB 12.02.2018 в 02:09
source

0 answers