AFAIK, DocumentDB does not have this kind of concept. Each document in DocumentDB has an id
property which uniquely identifies the document but that id
field is of type string. When creating a document, you may choose not to specify a value for this field and DocumentDB assigns an id automatically but this value is a GUID. Thus if you wish to achieve auto increment type functionality, you would need to handle this on your own. However please do keep in mind that it is a string type property so even if you're handling this on your own, you would need to pad your string with zeros so that values are returned in proper order i.e. 1, 2, 3 etc. instead of 1, 10, 11, ... 19, 2, 20 ....
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…