I'm using Google Authentication for user signup in my application. I want to store a unique serial number (srNo) in the user document whenever a new user signs up. Ideally, the srNo should be a sequential number starting from 1 for the first user and incrementing by 1 for each subsequent signup.
Serial numbering to user document
Database & APIs
Resolved
I've created a field named "srNo" in my users collection.
How can I achieve automatic sequential numbering for the "srNo" field when a new user registers using Google Authentication?
No
1
4 replies