When I run the following command in Cosmos DB 3.6,
db.collectionName.ensureIndex({"Contract.ContractNumber":1, "PBPNumber":1})
Contract.ContractNumber is the sub-document path.
I got his error
{
"ok" : 0,
"errmsg" : "Compound index does not currently support nested documents or arrays.",
"code" : 115,
"codeName" : "CommandNotSupported"
}
The same command succeeds in out of box Mongo.
Is there anyway to do it?
Thanks