This is a big deal as a small bit of time wasted by everyone working around it all the time means a lot of wasted time overall.
How about just cut through all the complexity and allow:
{ person | pet.name = "Fido" } }
It is the person record we are replicating, so that has to be on the left. Pet.name tells us exactly where in the record we are making a change so that is all we need on the right.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is a big deal as a small bit of time wasted by everyone working around it all the time means a lot of wasted time overall.
How about just cut through all the complexity and allow:
{ person | pet.name = "Fido" } }
It is the person record we are replicating, so that has to be on the left. Pet.name tells us exactly where in the record we are making a change so that is all we need on the right.