ICollectionsService interface


Provides methods for listing collections.

public interface ICollectionsService

Methods

Select collection

Accept collection name as parameter, and provides ICollectionService interface for that specific collection. This method is used as entry point for adding, updating, removing or listing documents. In case when when used for adding new documents, cloud storage will automatically create collection with specified name if it is not existing.

CollectionResult<Collection> List(ListCollectionsQuery query = default);

Examples

Get collections

Getting collections can be done by calling List method:

service.Collections().List();

service.Collections().List(new ListCollectionsQuery
{
    Take = 10,
    Skip = 1
});

results matching ""

    No results matching ""