Import a library into the sync function

Is it possible? How?

There is similar functionality in CouchDB: http://couchdb.readthedocs.io/en/latest/query-server/javascript.html#commonjs

Thank you.

This is not currently supported. Sync Gateway does have the lodash library loaded, but there’s no capability to add more.