I am using play framework with Couchbase. Play framework has a feature of app modes: dev, test, prod. Couchbase view engine also has modes: dev, prod. I want to query all Couchbase views in dev mode while in play framework dev mode and query views in prod modev for play framework prod mode.
With java Couchbase client 1.x I did
systemProperties.put("cbclient.viewmode", "development");
In java sdk 2 I found only how to set dev mode for each query
ViewQuery.development();
Is there similar way to set view mode globally in sdk 2.x?