See https://www.gremwell.com/spring-n1ql-injection. Thanks to https://www.baeldung.com/n1ql-couchbase and other their projects for code snippets. :-)