You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

53 lines
1.4 KiB

  1. # DO NOT MODIFY. This file was generated by
  2. # github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
  3. # An ArrayUnion value can occur at any depth. In this case, the transform applies
  4. # to the field path "b.c". Since "c" is removed from the update, "b" becomes
  5. # empty, so it is also removed from the update.
  6. description: "update: nested ArrayUnion field"
  7. update: <
  8. doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
  9. json_data: "{\"a\": 1, \"b\": {\"c\": [\"ArrayUnion\", 1, 2, 3]}}"
  10. request: <
  11. database: "projects/projectID/databases/(default)"
  12. writes: <
  13. update: <
  14. name: "projects/projectID/databases/(default)/documents/C/d"
  15. fields: <
  16. key: "a"
  17. value: <
  18. integer_value: 1
  19. >
  20. >
  21. >
  22. update_mask: <
  23. field_paths: "a"
  24. field_paths: "b"
  25. >
  26. current_document: <
  27. exists: true
  28. >
  29. >
  30. writes: <
  31. transform: <
  32. document: "projects/projectID/databases/(default)/documents/C/d"
  33. field_transforms: <
  34. field_path: "b.c"
  35. append_missing_elements: <
  36. values: <
  37. integer_value: 1
  38. >
  39. values: <
  40. integer_value: 2
  41. >
  42. values: <
  43. integer_value: 3
  44. >
  45. >
  46. >
  47. >
  48. >
  49. >
  50. >