Error in Fetching the data

query

#1
       I can be able to store the data in Couchbase Lite, but when i try to retrieve the data, i was not able to the get the output, as a result i am getting null value.Below is the code,

         CBLQueryResult * result = self.data[indexPath.row];
        NSString*name = [result stringForKey:@"fromEmail"];

‘self.data’ were retrieved array from Couchbase Lite, i am supposed to get a value in ‘name’ , but i was getting null value.


#2

Sorry, I really need to see the error in order to make heads or tails of this.


#3

Without seeing the query, and an example document, it’s impossible to help with this.


#4

Thank you all for your support, any how i resolved this issue :slight_smile: