Issues pulling from couchbase server

Ah ok thanks, I shall take a look a the REST API. How do relational keys
(what’s the terminology are they composite keys?) work via sync
gateway/couchbase lite? Eg I had json written like so which I loaded with
the cbdocloader tool.

{
‘beer_id’ : ‘beer_Hoptimus_Prime’,
‘type’ : ‘beer’,
‘brewery’ : ‘brewery_Hoppy_Brewery’
}

{
‘brewery_id’ : ‘brewery_Hoppy_Brewery’,
‘type’ : ‘brewery’
}
What’s the equivalent way of relating documents through sync
gateway/couchbase lite?