@NoRepositoryBean
public interface ReactiveCosmosRepository<T,K>
extends org.springframework.data.repository.reactive.ReactiveSortingRepository<T,K>
| Modifier and Type | Method and Description |
|---|---|
Mono<Void> |
deleteById(K id,
PartitionKey partitionKey)
Deletes an entity by its id and partition key.
|
Flux<T> |
findAll(PartitionKey partitionKey)
Returns Flux of items in a specific partition
|
Mono<T> |
findById(K id,
PartitionKey partitionKey)
Retrieves an entity by its id and partition key.
|
Mono<T> findById(K id, PartitionKey partitionKey)
id - must not be null.partitionKey - partition key value of the entity, must not be null.Mono emitting the entity with the given id or Mono.empty() if none found.IllegalArgumentException - in case the given id is null.Mono<Void> deleteById(K id, PartitionKey partitionKey)
id - must not be null.partitionKey - partition key value of the entity, must not be null.Mono emitting the void Mono.IllegalArgumentException - in case the given id is null.Flux<T> findAll(PartitionKey partitionKey)
partitionKey - partition key valueFlux of items with partition key valueCopyright © 2021 Microsoft Corporation. All rights reserved.