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.
 
 
 

77 lines
1.8 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. # A document can have more than one ArrayUnion field. Since all the ArrayUnion
  4. # fields are removed, the only field in the update is "a".
  5. description: "update-paths: multiple ArrayUnion fields"
  6. update_paths: <
  7. doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
  8. field_paths: <
  9. field: "a"
  10. >
  11. field_paths: <
  12. field: "b"
  13. >
  14. field_paths: <
  15. field: "c"
  16. >
  17. json_values: "1"
  18. json_values: "[\"ArrayUnion\", 1, 2, 3]"
  19. json_values: "{\"d\": [\"ArrayUnion\", 4, 5, 6]}"
  20. request: <
  21. database: "projects/projectID/databases/(default)"
  22. writes: <
  23. update: <
  24. name: "projects/projectID/databases/(default)/documents/C/d"
  25. fields: <
  26. key: "a"
  27. value: <
  28. integer_value: 1
  29. >
  30. >
  31. >
  32. update_mask: <
  33. field_paths: "a"
  34. field_paths: "c"
  35. >
  36. current_document: <
  37. exists: true
  38. >
  39. >
  40. writes: <
  41. transform: <
  42. document: "projects/projectID/databases/(default)/documents/C/d"
  43. field_transforms: <
  44. field_path: "b"
  45. append_missing_elements: <
  46. values: <
  47. integer_value: 1
  48. >
  49. values: <
  50. integer_value: 2
  51. >
  52. values: <
  53. integer_value: 3
  54. >
  55. >
  56. >
  57. field_transforms: <
  58. field_path: "c.d"
  59. append_missing_elements: <
  60. values: <
  61. integer_value: 4
  62. >
  63. values: <
  64. integer_value: 5
  65. >
  66. values: <
  67. integer_value: 6
  68. >
  69. >
  70. >
  71. >
  72. >
  73. >
  74. >