Hi,
I'm having some trouble configuring the sync gateway, having pieced together examples from grocery-sync and the documentation.
I have setup a bucket named aussie-coins-bucket on my couchbase server, with the following document inserted with id of 1
{
"coin": "One Cent",
"type": {
"typeName": "Type 1",
"years": "1966 - 2006"
},
"Reverse Designer": "Stuart Devlin",
"Obverse Designer": "Arnold Machin",
"Weight": "2.59 grams",
"Size": "17.53 mm",
"Composition": {
"Copper": "97%",
"Zinc": "2.5%",
"Nickel": "0.5%"
}
}
I am using the following config for sync-gateway
{
"interface": ":4984",
"adminInterface": ":4985",
"log": ["CRUD", "CRUD+", "HTTP", "HTTP+", "Access", "Cache", "Shadow", "Shadow+", "Changes", "Changes+"],
"databases": {
"aussie-coins-syncdb": {
"bucket": "aussie-coins-bucket",
"sync": `function(doc) {channel(doc.channels);}`,
"users": {
"GUEST": {
"disabled": false,
"admin_channels": ["*"]
}
}
}
}
}
{
"rows": [],
"total_rows": 0
}
I was expecting to see the document here, why does the response show there are no rows? This is the sync gateway output
13:29:19.165477 HTTP: #004: GET /aussie-coins-syncdb/_all_docs
What have I misconfigured?
I'm running Couchbase Version: 2.2.0 community edition (build-837) and sync-gateway-1.0-beta2