Get the dataset from a "returning" clause using the Java SDK

I’m executing a N1ql query that has a “returning” clause, but I can’t seem to find a way to access that data using the Java client. Is there something special that you have to do?

A RETURNING * clause should produce rows(), just like a SELECT so that should work out of the box.

Hi @simonbasle - that is what I thought too, but that does not seem to be the case. Try it for yourself.

what is the query you are trying to execute, and what is the SDK version you are using?

@vibelifeinc I did try, and there’s even a test for RETURNING clause:

That’s why I need to know if you’re doing anything more specific, or maybe using an older version of the SDK that might explain why returned data isn’t visible to you…

I got it to work. Thanks.