bwgjoseph / mongoose-vs-ottoman

feature comparison between mongoose and ottoman
0 stars 1 forks source link

QueryScanConsistency not available #107

Closed bwgjoseph closed 2 years ago

bwgjoseph commented 3 years ago

Hi,

While trying the latest beta.8, and using the latest couchbase:enterprise-7.0.0 docker image.

I am seeing this error

Argument of type '{ consistency: string; }' is not assignable to parameter of type 'QueryOptions'.
  Object literal may only specify known properties, and 'consistency' does not exist in type 'QueryOptions'.      

         const queryFind = await getDefaultInstance().cluster.query(query, { consistency: 'request_plus' });

Which I believe is because of the recent change that it changes to enum

So I tried to make the change to

await getDefaultInstance().cluster.query(query, { scanConsistency: QueryScanConsistency.RequestPlus });

But QueryScanConsistency is not re-exported from ottoman and does not seem to be exported from couchbase too

image

It should be re-exported from ottoman, I believe

Thanks

AV25242 commented 3 years ago

Could be strictly beta issue. I will reach out to the team and confirm.

gsi-alejandro commented 3 years ago

hi @bwgjoseph QueryScanConsistency will be exported in Ottoman next release.

Thank you.

bwgjoseph commented 3 years ago

Sure, thank you!

AV25242 commented 2 years ago

We released Ottoman beta.9 today please verify