ViewUpdateMode missing in node library

@brett19
I’m trying to upgrade to sdk 3.0, but it seem still quite incomplete.
The intellisense is not working because there is something that make vs code generate the auto complete from version 2.4.
Without intellisense I have to watch the docs for every little things.

Leaving that aside, I need to query a view and the docs says to specify ViewUpdateMode for the stale parameter but that class is totally missing.

I tried to file a bug report on Jira, but I can’t login. Did you disable external bug report?

Hey @00christian00,

This should be fixed in the next release of the SDK, you can track the issue here:
https://issues.couchbase.com/browse/JSCBC-758

Cheers, Brett

Thanks. I saw the commit and the code use scan consistency instead of stale.
Do scan consistency and stale map 1:1?
I need to query a view, not execute n1ql query.

Hey @00christian00,

That’s accurate, ViewScanConsistency mirrors the values that are provided by the underlying view’s stale flag. Note that ViewScanConsistency is defined differently from QueryScanConsistency.

Cheers, Brett

1 Like

Hi @brett19, found another minor issue with the new sdk.
The docs says to use createparent option on subdoc api, but the real option is called createPath, createparent is ignored.

By the way, is there any option to force the creation of document with the sub doc api if it is not existing?

Hey @00christian00,

Nice catch, I’ve filed https://issues.couchbase.com/browse/JSCBC-765 to get this fixed.

Cheers, Brett