We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The custom mask is interpreted as a whole field name instead of the nested field name. Therefore there is no way to update a nested field with it.
const firestore = FirestoreApp.getFirestore(email, key, projected); const original = { field1: 'value1', field2: 'value2', field3: { field4: 'value4', field5: 'value5', }, 'field3.field4': 'value3.4', } const update = { field3: { field4: 'new value4', }, 'field3.field4': 'new value3.4', } firestore.createDocument('TestCol/TestDoc', original); var updated = firestore.updateDocument('TestCol/TestDoc', update, ['field3.field4']);
updated = { field1: 'value1', field2: 'value2', field3: { field4: 'new value4', //<-- Updated field5: 'value5', } 'field3.field4': 'value3.4', }
updated = { field1: 'value1', field2: 'value2', field3: { field4: 'value4', field5: 'value5', } 'field3.field4': 'new value3.4', //<-- Updated }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The custom mask is interpreted as a whole field name instead of the nested field name.
Therefore there is no way to update a nested field with it.
Minimal code to reproduce the problem
Expected Behavior
Actual Results
Library Version: Head
The text was updated successfully, but these errors were encountered: