You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this issue is to help users manage server side counters more easily.
We could leverage findAndUpdate that issues an update with $inc, upsert and ReturnDocument.AFTER to maintain a counter document in a specific collection obtaining the incremented value as outlined below.
Wrapping the above in something like a MongoSequence would allow easy access.
This issue is somehow related to #1842 which IMO should be addressed on a broader basis in data-commons.
The text was updated successfully, but these errors were encountered:
The goal of this issue is to help users manage server side counters more easily.
We could leverage
findAndUpdate
that issues an update with$inc
,upsert
andReturnDocument.AFTER
to maintain a counter document in a specific collection obtaining the incremented value as outlined below.Wrapping the above in something like a
MongoSequence
would allow easy access.This issue is somehow related to #1842 which IMO should be addressed on a broader basis in data-commons.
The text was updated successfully, but these errors were encountered: