title: SWIFT/CloudKit - Updating a record and saving it back to container
body: <p>I'm having a problem updating CloudKit records. What I want to achieve is the ability to allow users to vote for a book by clicking a tableview row.
  This tableview is currently filled using records from Cloud data.
  I'm stuck when I want to retrieve a record (ie. the selected tableview row), and increase its voteCount column by 1, then save it back to the cloud and reload the data in the tableview.</p>
  
  <p>Currently I am retrieving records by:</p>
  
  <pre><code>    booksIncludedInVote = []
      let cloudContainer = CKContainer.defaultContainer()
      let publicDatabase =CKContainer.defaultContainer().publicCloudDatabase
  
      let predicate = NSPredicate(value: true)
      let query = CKQuery(recordType: "Book", predicate: predicate)
      let queryOperation = CKQueryOperation(query: query)
      queryOperation.desiredKeys = ["name", "author", "image", "description", "voteCount"]
      queryOperation.queuePriority = .VeryHigh
      queryOperation.resultsLimit = 50
      queryOperation.recordFetchedBlock = { (record:CKRecord!) -&gt; Void in
      if let restaurantRecord = record {
        self.booksIncludedInVote.append(restaurantRecord)
      }
  </code></pre>
  
  <p>Can you help me update a particular record and then send it back up to the cloud?</p>