此函數的 EBNF 語法如下所示
CollectionCreateIndex ::= '.createIndex(' StringLiteral ',' DocumentOrJSON ')'
圖 11.13 CollectionCreateIndexFunction
CollectionDropIndex ::= '.dropIndex(' StringLiteral ')'
圖 11.14 CollectionDropIndex