Adds a single field or multikey index with a direction.
Call this method multiple times with different fields to create a compound index.
the name of the field to index
1 for ascending or -1 for descending
this IndexModel instance (caller)
See Implementation
Adds a single field or multikey index with a direction.
Call this method multiple times with different fields to create a compound index.