Auto-incrementing number field on collection #1310
zubricks
started this conversation in
Feature Requests & Ideas
Replies: 3 comments
-
Duplicate of #1026 |
Beta Was this translation helpful? Give feedback.
0 replies
-
If anyone else is looking for this, here's how I did it: Field:
Collection hook:
Function:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To do this, we'd need to build something like an
autoIncrement
field prop. We could check the database for the most recently created document, and then take its field value and increment that.Marking as planned and logging here for visibility.
Beta Was this translation helpful? Give feedback.
All reactions