此函數在 EBNF 中顯示的語法為
CollectionCreateIndex ::= '.createIndex(' StringLiteral ',' DocumentOrJSON ')'
圖 11.13 CollectionCreateIndexFunction
CollectionDropIndex ::= '.dropIndex(' StringLiteral ')'
圖 11.14 CollectionDropIndex