Function: buildIndexExpr()
buildIndexExpr(
collection
,type
,name
,on?
,where?
,usingGSI?
,withExpr?
):string
Defined in: query/helpers/builders.ts:537
Build a INDEX N1QL query from user-specified parameters. https://docs.couchbase.com/server/6.5/n1ql/n1ql-language-reference/createindex.html
Parameters
collection
string
Collection name
type
INDEX clause types ('CREATE' | 'BUILD' | 'DROP' | 'CREATE PRIMARY')
name
string
on?
ON Clause
where?
LogicalWhereExpr
<any
>
WHERE Clause
usingGSI?
boolean
use a Global Secondary Index (GSI)
withExpr?
WITH Clause
Returns
string
N1QL INDEX Query