Table of Contents

Class CompositePath

Namespace
Microsoft.Azure.Cosmos
Assembly
Microsoft.Azure.Cosmos.Client.dll

DOM for a composite path. A composite path is used in a composite index. For example if you want to run a query like "SELECT * FROM c ORDER BY c.age, c.height", then you need to add "/age" and "/height" as composite paths to your composite index.

public sealed class CompositePath
Inheritance
CompositePath
Inherited Members
Extension Methods

Constructors

CompositePath()

public CompositePath()

Properties

Order

Gets or sets the sort order for the composite path. For example if you want to run the query "SELECT * FROM c ORDER BY c.age asc, c.height desc", then you need to make the order for "/age" "ascending" and the order for "/height" "descending".

public CompositePathSortOrder Order { get; set; }

Property Value

CompositePathSortOrder

Path

Gets or sets the full path in a document used for composite indexing. We do not support wild cards in the path.

public string Path { get; set; }

Property Value

string