Calling a User-Defined Function from N1QL statements.
Introduction
A User-Defined Function can be called like any other N1QL function. The Javascript is not called directly; it is called through the N1QL User-Defined Function.
Calling the N1QL User-Defined Function
A N1QL User-Defined Function can be called from anywhere that a standard N1QL function can be called.
-
Query Workbench
-
REST API
-
N1QL
Run the EXECUTE FUNCTION
function in the CBQ Shell.