I am migrating/upgrading to spring data couchbase 4.x
I am currently using n1Ql query in String.
SimpleN1qlQuery n1qlQuery = N1qlQuery.simple(“n1QlqueryString”);
With upgrade, i don’t see a way to create Query from stringQuery in spring data. Is there a way to do that. I can not use sdk query directly instead of using spring data dynamic query as i need to have custom JsonSerializer to parse the result, which Java sdk can not do that.
How can create Query from String using spring data. Thank you for the help!!
The only support for dynamically created string queries in 4.x is to use the couchbase java sdk through template.getCouchbaseClientFactory().
The alternative is to use the matching(queryObj) method on the template.
I’m currently working on implementing querydsl for an upcoming release.