Firestore supported characters for custom id's

后端 未结 1 605
無奈伤痛
無奈伤痛 2021-01-17 11:49

I would like to create a custom id for my documents in firestore, I know all the base 62 (a-z, A-Z, 0-9) characters are supported for custo

相关标签:
1条回答
  • 2021-01-17 12:45

    This is a late answer, but as I was just looking for this information myself:

    The constraints on the document ids (and collection ids are) are:

    • Must be valid UTF-8 characters
    • Must be no longer than 1,500 bytes
    • Cannot contain a forward slash (/)
    • Cannot solely consist of a single period (.) or double periods (..)
    • Cannot match the regular expression __.*__

    Document Ids may contain space characters.

    The naming constraints on document Ids, collection Ids, and field names are fully documented here:

    https://firebase.google.com/docs/firestore/quotas#limits

    Google firebase group discussion on this:

    https://groups.google.com/forum/#!topic/firebase-talk/bUMpQwGe08k

    0 讨论(0)
提交回复
热议问题