For example, I have two class Player and Game, and Game has a field player which is a pointer to Player. As Parse documentation says, save is recursive, so I assume that I can save a player by only saving a game, just like:
let player = PFObject(className: "Player")
player["name"] = ABC
let game = PFObject(className: "Game")
game["player"] = player
game["round"] = 1
game.saveInBackground()
Is this true?
Ok, now assuming that is true, then what about changing the player's name by only saving game? Like:
let player = game["player"] as! PFObject
player["name"] = BCD
game["round"] = 2
game.saveInBackground()
Could you please answer these two questions? Thank you.
Another question: If I want to get the player["name"], do I need to use includeKey("player") when querying the game?