Hello,
The lookupIn().get()
method seems to be unsupported.
The following test:
Bucket bucket = ...
bucket.lookupIn("doc1").get().execute();
Results in:
java.lang.UnsupportedOperationException: Lookup type GETDOC unknown
at com.couchbase.client.java.subdoc.AsyncLookupInBuilder.doSingleLookup(AsyncLookupInBuilder.java:312)
at com.couchbase.client.java.subdoc.AsyncLookupInBuilder.execute(AsyncLookupInBuilder.java:147)
at com.couchbase.client.java.subdoc.LookupInBuilder.execute(LookupInBuilder.java:153)
Is it something that will be implemented in the future?
The main use case for using lookupIn().get()
is to get only the specified fields when user specified them (get(fields)
) or get()
the entire document when no fields are specified.
It is of course possible to get the entire document using different API calls (such as Bucket.get()
), but method result type is different which makes writing code to support both scenarios more complicated.
Regards,
Adam