FerretDB icon indicating copy to clipboard operation
FerretDB copied to clipboard

Document `createIndexes` command

Open rumyantseva opened this issue 1 year ago • 1 comments

What should be done?

Things to metnion:

  • createIndexes called for a non-existent collection will create the collection, and the given indexes;
  • createIndexes called for a non-existent field creates index for this field;
  • attempt to call createIndexes for an index that already exists (when the name and the key are equal) will return index name but will not create a duplicate index.
  • attempt to call createIndexes for same name and different keys or same keys but different names will return an error.

rumyantseva avatar Mar 23 '23 17:03 rumyantseva

Why we want that to be documented and where?

AlekSi avatar Apr 03 '23 08:04 AlekSi