-
When using patch.Document I get the following error: Invalid property path "02.temperature". Unquoted property paths must match regex ([a-zA-Z_][a-zA-Z_0-9]*), and quoted property paths must match regex ( The paths used are:String documentPath = "test_collection/esp3/data/" + documentid.substring(len-20,len); content.set("fields/00/mapValue/fields/temperature/integerValue", "21"); Firebase.Firestore.patchDocument(&fbdo, FIREBASE_PROJECT_ID, "" /* databaseId can be (default) or empty /, documentPath.c_str(), content.raw(), "00.temperature" / updateMask */)It seems that regex ([a-zA-Z_][a-zA-Z_0-9]*) cannot extract field name if it does not begin with letters? Any suggestions how to overcome this? I need to use "00", "02", "03" as field names for map fields. Tried to encode with "%30%30" without success. ESP8266 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
You should read the Firestore API reference for properly use.
|
Beta Was this translation helpful? Give feedback.
-
It's not issue and no workaround. It's Google API design. |
Beta Was this translation helpful? Give feedback.
-
It's not an issue in Google API. This is the Google Firestore REST API design as I post the link to Firestore REST API which is different from other Firebase Admin and SDK clients. You should follow the APIs that google provided for supported platforms instead of assuming that all APIs are identical. |
Beta Was this translation helpful? Give feedback.
-
You should know the difference of APIs when working on cross platforms even it worked on the same service. |
Beta Was this translation helpful? Give feedback.
You should read the Firestore API reference for properly use.