Details
-
Bug
-
Resolution: Fixed
-
Major
-
Mad Hatter
-
None
Description
The eventing transpiler converts N1QL statements appearing in the handler to an executable JS version by wrapping them with N1qlQuery() function. We don't document this, but we can't also hide it as it's available to see in the transpiled code and some things like dynamic query generation is possible only by directly using this class. This class is changing in the following ways in 6.5:
1. N1qlQuery() is gone, and replaced with N1QL()
2. Parameters of N1QL are:
N1QL(statement, parameters, consistency)
statement -> The N1QL statement
parameters -> Either a map of key/values (named parameters) or array (positional parameters)
consistency -> Query consistency
I'm logging this to check if we should release note this as we've seen several instances of customers dropping down to bypass transpiler to the N1qlQuery class.
Gautham, please reassign to docs team when the final signature is available for 6.5 and if docs team determines does need to appear in release notes.