X DevAPI User Guide for MySQL Shell in Python Mode
The syntax for this function shown in EBNF is:
CollectionCreateIndex ::= '.createIndex(' StringLiteral ',' DocumentOrJSON ')'
Figure 11.13 CollectionCreateIndexFunction
CollectionDropIndex ::= '.dropIndex(' StringLiteral ')'
Figure 11.14 CollectionDropIndex