Pixar movies may be for children, but some of their best plot twists surprised even adult audiences. The Disney studio has established a specific formula over the years to the point that it's typically easy to guess what will happen. However, the writers for movies like the Toy Story sequels, Coco, and Monsters Inc seemed to have recognized this and used audiences' expectations to twist the plot more unexpectedly.
https://screenrant.com/pixar-movies-shocking-twists-toy-story-monsters-inc/