query(type="n1ql", statement="...")method or by calling the
n1qlQuery("...")method directly. Just as with View queries, the same options are available to N1QL queries, this includes:
FROMclause, in this example "users" is the name of a bucket. This query can be described as:
"Get every property from the 'user_101' document in the 'users' bucket"
USE KEYSstatement is not limited to single values either, multiple documents can be retrieved by declaring an array.
JOINresults across tables. N1QL supports joining results in a bucket as well as across buckets.
JOINstatements utilize the
queryTimeout. Please see the documentation for detailed descriptions of each configuration option.