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: 
Aaaand, I've got it. Using the code below, I was able to create a query to run on the database, to then return an NSArray in the completion block, which I looped through, and returned the value for the saved key in an NSLog.

```
NSPredicate *predicate = [NSPredicate predicateWithValue:YES];
CKQuery *query = [[CKQuery alloc] initWithRecordType:@"Strings" predicate:predicate];

[_privateDatabase performQuery:query inZoneWithID:nil completionHandler:^(NSArray *results, NSError *error) {
    for (CKRecord *record in results) {
        NSLog(@"Contents: %@", [record objectForKey:@"stringArray"]);
    }
}];

```
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 ?? "")")
  })
}

```