Is there functionality similar to SQL ROW_NUMBER() IN N1QL?

Is there a way to count documents dynamically for each query and select counter as output or is this best done in app layer?

Thank you!

Please do this in the app for now. We may add this in the future (it requires serial processing of the query, as opposed to parallel).

1 Like