What characters are allowed in a Firestore path?

2,774 views
Skip to first unread message

Bartholomew Furrow

unread,
Nov 4, 2017, 5:02:20 PM11/4/17
to Firebase Google Group
I've Googled all over, and haven't found this. Is there any character that can't appear in a segment of a Firestore path other than / ? This node_js API line from path.js seems to confirm that any character is valid, but I'd like to make sure before using email addresses (with / characters escaped) as keys.

const RESOURCE_PATH_RE = /^projects\/([^/]*)\/databases\/([^/]*)(?:\/documents\/)?(.*)$/;

Thanks,
Bartholomew

Ani Hatzis

unread,
Nov 5, 2017, 2:05:35 AM11/5/17
to Firebase Google Group
It's in the Firestore documentation about Quotas and Limits - Standard limits, scroll to the lower part of the table, where it shows constraints on document IDs, collection IDs, field names and field paths.

Bartholomew Furrow

unread,
Nov 8, 2017, 1:15:41 PM11/8/17
to Firebase Google Group
Of course, the quota document. :-) Thanks, Ani!

Kato Richardson

unread,
Nov 8, 2017, 1:20:26 PM11/8/17
to Firebase Google Group
Of course, if you couldn't find it, we can probably do better to make it easy to find. I'll see about adding at least a note somewhere in the guide.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b636fff5-0b90-4b0d-87c0-754f02e99621%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Bartholomew Furrow

unread,
Nov 8, 2017, 8:42:09 PM11/8/17
to fireba...@googlegroups.com
True enough, though I don't know there's an obvious place for it; I couldn't think where to look past DocumentReference.collection, CollectionReference.document, etc. I mostly just Googled [firestore path allowed characters] and similar. Maybe this thread will help people find it.

On Wed, Nov 8, 2017 at 11:20 AM 'Kato Richardson' via Firebase Google Group <fireba...@googlegroups.com> wrote:
Of course, if you couldn't find it, we can probably do better to make it easy to find. I'll see about adding at least a note somewhere in the guide.

On Wed, Nov 8, 2017 at 11:15 AM, Bartholomew Furrow <fur...@gmail.com> wrote:
Of course, the quota document. :-) Thanks, Ani!

On Sunday, November 5, 2017 at 1:05:35 AM UTC-6, Ani Hatzis wrote:
It's in the Firestore documentation about Quotas and Limits - Standard limits, scroll to the lower part of the table, where it shows constraints on document IDs, collection IDs, field names and field paths.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/bUMpQwGe08k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages