Create an array index for a property on a document.
This index works on a property with an array of IndexablePrimitives. It will match documents where the lookup value is a member of the array.
Create an index with a custom ordering function for a property on a document.
This works like IndexConstructor.key, except that it takes any value rather than just a primitive, as long as you provide an ordering function for it.
Create an index for a single property on a document.
The type of the property needs to match IndexablePrimitive, ie. it needs to be a string, a number or a bigint. If you need an index for a different value type, use IndexConstructor.custom.
Create a compound index for a pair of properties on a document.
The types of the properties need to match IndexablePrimitive, ie. they need to be strings, numbers or bigints.
This index matches documents where both properties match the provided pair of values. Partial matches do not count.
Whemn a compound index is used as a primary index, the unique key is the value pair, not either of the individual values, so you can have multiple documents with either one of the properties having identical values, but only one document matching any one given value pair.
Create an index for a Temporal.Instant property on a document.
This works exactly like IndexConstructor.key, except that it takes a Temporal.Instant instead of a primitive value.
Constructor functions for creating an index.