I am trying to read the output of the n1ql_query using python sdk, but no clue to do that. can anyone help in reading the output and parsing it.
from couchbase.cluster import Cluster, PasswordAuthenticator
cluster = Cluster('couchbase://localhost:8091')
print ('Authenticator as Administrator.')
cluster.authenticate(PasswordAuthenticator('Administrator', 'Password'))
print ('Opening travel-sample bucket as user.')
bucket = cluster.open_bucket('travel-sample')
result = bucket.n1ql_query('SELECT distinct META().id FROM `travel-sample`')
print (result)