The dharma teaches that the quality of our relationships is totally a function of our state of mind, and our ability not to contend with our experience.
This has the Metta Sutta as the basic text; but includes a discussion of the Paramitas and the resolve I made with Sharon Salzberg years ago to spend our time "when we are old" in "sitting around praying for people".