Question: I am new in Angular.js, I am watching pluralsight Angular tutorial, I did what the teacher told on that videos:

```
<!Doctype>
<html lang="en" ng-app>
    <head>

    </head>
    <body>
        <h1 ng-controller="helloWorldCtrl">{{helloMessage}}</h1>

        <script href="angular.min.js"></script>
        <script type="text/javascript">
            function helloWorldCtrl ($scope) {
                $scope.helloMessage = "Hello World!";
            }
        </script>
    </body>
</html>

```

The h1 should be `Hello World!` but it is `{{helloMessage}}`

I am using Latest version of Firefox on windows8 with latest version of Angular

Answer: 
Solution for **Swift 4**, 
shows how to fetch all the records of type "YourTable", also prints `System Field` and `Custom Field`:

```
let query = CKQuery(recordType: "YourTable", predicate: NSPredicate(value: true))
CKContainer.default().publicCloudDatabase.perform(query, inZoneWith: nil) { (records, error) in
  records?.forEach({ (record) in

    // System Field from property
    let recordName_fromProperty = record.recordID.recordName
    print("System Field, recordName: \(recordName_fromProperty)")

    // Custom Field from key path (eg: deeplink)
    let deeplink = record.value(forKey: "deeplink")
    print("Custom Field, deeplink: \(deeplink ?? "")")
  })
}

```
Here's the answer in Swift 3.0.

```
func myQuery()  {
    let predicate = NSPredicate(value: true)
    let query = CKQuery(recordType: "tableName", predicate: predicate)

    publicDatabase.perform(query, inZoneWith: nil) { (record, error) in

        for record: CKRecord in record! {
            //...

            // if you want to access a certain 'field'.
            let name = record.value(forKeyPath: "Name") as! String                
        }
    }
}

```