question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to retrieve the CAS from the document?

See original GitHub issue

As one of the approaches to concurrency-safe mutating document, I need to get the CAS from the document and replace the doc with it.

I didn’t find a documentation about the CAS retrieving, digging into the code it seems the findById only gets back the value(that is replaced by content according to latest sdk) https://github.com/couchbaselabs/node-ottoman/blob/d8a4936ed996526735bae3fca478fda1516d582c/src/model/create-model.ts#L190-L192

Will it be a good idea to have the ottoman to support both query CAS and update with it? my two cents,

  • Enhancement on FindByIdOptions to allow querying the CAS
  • Enhancement on updateById to allow passing a CAS(probably via MutationFunctionOptions)?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gsi-alejandrocommented, May 3, 2022

Next release we plan to expose a way to return the CAS value when available.

0reactions
AV25242commented, Oct 10, 2022

@gsi-alejandro where are we on this ? cc @ejscribner @thejcfactor

Read more comments on GitHub >

github_iconTop Results From Across the Web

Retrieve CAS Registry Numbers - CAS.org
From the session page toolbar, select Assistants > Sequence Search. From the Sequence Search Assistant page, select Retrieve RNs from BLAST. ...
Read more >
Retrieving Documents via the CAS API - Liaison International
This guide walks you through setting up and retrieving application documents from the CAS API on demand.
Read more >
CAS Letter: Documents, Validity & Processing Time
A CAS letter is an essential document that is used to apply for a student visa and verifies that a student has been...
Read more >
Information Sheet: Your CAS Statement explained
You will receive your CAS Statement by email. There is no hard copy document. You do not need to submit your CAS Statement...
Read more >
Confirmation of Acceptance for Studies (CAS)
You can request a CAS as soon as you have accepted an unconditional offer. How long it takes to receive your CAS number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found