When using viewQuery, adding a skip value in ViewOptions, an error is raised:
'invalid_argument (3): "expected skip to be a boolean value in the options"'
When looking for the cause, found this:
connection_handle.cxx#2772
if (auto e = cb_assign_boolean(request.skip, options, "skip"); e.ec) {
return e;
}
While all methods and documentation clearly indicates that the expected type of the value for ViewOptions->skip must be integer, here it's validated as a boolean. It should rightfully be as follows:
if (auto e = cb_assign_integer(request.skip, options, "skip"); e.ec) {
return e;
}
This solution has been implemented and built locally and confirmed working as expected.
When using viewQuery, adding a
skipvalue in ViewOptions, an error is raised:When looking for the cause, found this:
connection_handle.cxx#2772
While all methods and documentation clearly indicates that the expected type of the value for
ViewOptions->skipmust be integer, here it's validated as a boolean. It should rightfully be as follows:This solution has been implemented and built locally and confirmed working as expected.