Skip to content

Can we use the atomic MongoDB increment operator? #10311

Closed Answered by willemmulder
willemmulder asked this question in Q&A
Discussion options

You must be logged in to vote

I've been doing some extra investigation, and I think it's possible using payload.db.collections which gives direct access to the Mongoose model. Consider this closed!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by willemmulder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant