I want to work with GetResult directly rather than converting it in model classes due to the dynamic nature of the data. I have written the repository in spring data couchbase (latest version) in this fashion. Can you let me know if I am in right direction ?
import com.couchbase.client.java.kv.GetResult;
import org.springframework.data.couchbase.repository.ReactiveCouchbaseRepository;
public interface GetRepository extends ReactiveCouchbaseRepository<GetResult, String> {
}
I don’t think it is going to work … This is what I have put for spring webflux now … Can you let me know if it is the right way to do it in reactive fashion in spring webflux with reactive streams.
reactiveCouchbaseTemplate
.getCollection(CollectionIdentifier.DEFAULT_COLLECTION)
.reactive()
.get(id)
@subhashni
git clone git@github.com:spring-projects/spring-data-couchbase.git
refer to the the test cases. Specifically - ReactiveCouchbaseTemplateKeyValueIntegrationTests
You can use the Couchbase SDK directly to access GetResult with reactiveCouchbaseTemplate.getCouchbaseClientFactory()…