Search code examples
firebasegoogle-cloud-firestorefirebase-security

Is firestore rules list index 0-based or 1-based?


Bcz it's not mentioned here firestore rules/List, so I want know.


Solution

  • It is 0 based like in most languages. I could not find a place in the doc where it is explicitly said but my rules work and they us the 0 based assumption.