I am developing and application that will have a mobile part with couchbase lite that connects via a sync gateway to a couchbase_server. The data on the couchbase_server is going to be administered though a web app with an ottoman backend. When I start the sync_gateway I get the following error:
Error applying change from external bucket: 400 user defined top level properties beginning with '_' are not allowed in document body
Ottoman insists on adding a property called _type
to each document and if I understand correctly this is the problem.
Is there a way to get this two to work together, either instructing ottoman to use type
instead of _type
or by configuring the sync_gateway to accept _type
? Or the problem is somewhere else?
My config.json looks like this at the moment:
{
"interface":":4984",
"adminInterface":":4985",
"log":["CRUD+", "REST+", "Changes+", "Attach+", "Shadow"],
"databases":{
"reserver_app_syncgw":{
"server":"http://localhost:8091",
"bucket":"sync_gateway",
"sync":\`
function (doc) {
channel (doc.channels);
}\`,
"users": {
"GUEST": {
"disabled": false,
"admin_channels": ["*"]
}
},
"shadow": {
"server": "http://localhost:8091",
"bucket": "reserver_app"
}
}
}
}
Thanks