*** Warning: Spoilers for 'Soul' from Disney Pixar below ***

'Soul' debuted on Disney+ to great success at Christmas with families all over the globe spending the holidays watching it together.

The animated feature follows Joe (voiced by Jamie Foxx), a pianist and music teacher, who has an accident after getting the opportunity of a lifetime.

His soul is detached from his body and he winds up in the Great Before.

There he meets another soul named 22 (Tina Fey), who agrees to help him get back home.

In the end, 22 earns her pass for a life on Earth while Joe is given another chance to live.

The directors of the movie, Pete Docter and Kemp Powers, have revealed that they went back and forth on the ending for ages.

In fact, the plan was originally for Joe to go to the Great Beyond (namely, he'd die).

Producer Dana Murray told ET Online: "We went back and forth on the ending up until the last screening. For a long time, Joe did go to The Great Beyond.

"There was a lot of debating back and forth, but I think the more we saw him live his life and just thinking about his mother, Libba, and all these different factors, it felt like the right ending, that he needed to be able to go enjoy his life in the way he wanted to, because he'd learned so much throughout the film."

Docter added: "I think people felt like it's cheating to let him go back. On the other hand, story-wise, you can't teach this guy to enjoy life the right way and then rob him of that."

Powers noted: "We have versions of the ending where Joe does not go back to his body, where he actually stays dead. We have versions of the ending where you see Joe on Earth a year later. Man, that ending sparked more debate than I think any other element of the film."

And that's not all. The ending for 22 went through various iterations too.

According to Murray: "A lot of people had wanted to see where 22 ended up and so we boarded a scene that showed just a moment of her and where she was in her life. And then ultimately that didn't feel as emotional in the ending, as well."

One card on the table was that Joe wouldn't go back to his body, and end up as a repeat mentor in the You Seminar, revolutionising the programme.

There was also a version where Joe does go to The Great Beyond, with a scene set there, and then he returns.

What did you think of the ending? Let us know in the comments on Facebook.