Open KiranUppunda opened 3 years ago
I was just going to ask this exact same question!
I was just going to ask this exact same question!
I have a requirement for this too.
As a workaround you can do:
if (!key) key=String(await this.$db.collection(table).get().length)
await this.$db.collection(table).add(iValue, key)
Possible solution
await this.$db.collection(table).add(value) // Automaticly incrementing the key starting from 0 (replacing the generated key)
resulting in
instead of
Is it possible to make the key auto incremented on each insert ?