Great question! The
id isn't needed for either, however both will work with (or without) it. I can't find where anymore, perhaps it's changed and I didn't notice, but it used to be best practice to omit the
.id at the end and pass in the entire object, in this case
So, it'll work with or without just the ID, but it is or used to be considered best practice to pass in the object and not just the ID.
I hope this helps! You can read more about