You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firestore allows to have a map field, whose keys contains slashes, e.g. abc/def/123. You can write a document from js sdk with that kind of fields and keys, however if updating doc with nested field dot notation it throws error: Paths must not contain '~', '*', '/', '[', or ']'. The docs says: A quoted field name starts and ends with the backtick character. For example, foo.`x&y` refers to the x&y field nested under the foo field.
I know that FieldPath can be used and it works with FieldPaths, but it should work also with backticks.
MarkChrisLevy
changed the title
Cannot write backticked field name if contains / (slash)
Cannot write backticked nested field, when it if contains / (slash)
Nov 30, 2024
MarkChrisLevy
changed the title
Cannot write backticked nested field, when it if contains / (slash)
Cannot write backticked nested field, when it contains / (slash)
Nov 30, 2024
MarkChrisLevy
changed the title
Cannot write backticked nested field, when it contains / (slash)
Cannot update backticked nested field, when it contains / (slash)
Nov 30, 2024
Operating System
MacOS
Environment (if applicable)
Chrome 131
Firebase SDK Version
11.0.2
Firebase SDK Product(s)
Firestore
Project Tooling
Solid.js
Detailed Problem Description
Firestore allows to have a map field, whose keys contains slashes, e.g. abc/def/123. You can write a document from js sdk with that kind of fields and keys, however if updating doc with nested field dot notation it throws error: Paths must not contain '~', '*', '/', '[', or ']'. The docs says: A quoted field name starts and ends with the backtick character. For example, foo.`x&y` refers to the x&y field nested under the foo field.
I know that FieldPath can be used and it works with FieldPaths, but it should work also with backticks.
Steps and code to reproduce issue
updateDoc(doc(getFirestore(), "doc123"), {["abc.`def/123/455`"]: true})
The text was updated successfully, but these errors were encountered: