Is there documentation anywhere that describes all of the available functions for use within the Sync configuration of the Sync Gateways JSON file? For example, here is that file in the travel-mobile github.
Basically, I’m referring to all of the parameters and available function overrides within the function sync(doc, oldDoc) { } of that configuration file.
Side-Note: In our own proof of concept project, we have an extremely short Sync function that only assigns the channel to incoming docs.
It might be easier if I re-word the ultimate question:
Are there any parameters or functions available within the Sync configuration javascript that are NOT provided in that example. There are a lot of parms and functions shown in use there, but just wanting to know if there are additional ones not represented in that sample app. I am aware of this page : https://developer.couchbase.com/documentation/mobile/2.0/guides/sync-gateway/sync-function-api-guide/index.html but it does not appear to have everything that is accessible from within that Sync function. For example, IsDelete() and IsCreate() are not described there but are present in the sample.
I don’t know of an easy way to find out if the travel sample uses every single Javascript API call that Sync Gateway provides, but I doubt it. I would look at the API docs as the reference.