Hi, i am trying to write code on spring boot to use join query.
This is what i have:
@Query(
“SELECT * FROM #{#n1ql.bucket} AS f LEFT OUTER JOIN #{#n1ql.bucket} AS c ON f.category = meta( c ).id WHERE META(f).id = $1”
)
List<?> findByQuery(String id);
And I got error like this:
java.lang.NullPointerException\n\tat org.springframework.data.couchbase.core.ReactiveFindByQueryOperationSupport$ReactiveFindByQuerySupport.lambda$null$1(ReactiveFindByQueryOperationSupport.java:94)\n\tat reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:100)\n\tat reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.onNext(MonoFlatMapMany.java:242)\n\tat reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:114)\n\tat reactor.core.publisher.EmitterProcessor.drain(EmitterProcessor.java:426)
can someone point out what is wrong with my code? Thanks!