Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

70 рядки
1.9 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 ArrayRemove field. Since all the ArrayRemove
  4. # fields are removed, the only field in the update is "a".
  5. # b is not in the mask because it will be set in the transform. c must be in the
  6. # mask: it should be replaced entirely. The transform will set c.d to the
  7. # timestamp, but the update will delete the rest of c.
  8. description: "update: multiple ArrayRemove fields"
  9. update: <
  10. doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
  11. json_data: "{\"a\": 1, \"b\": [\"ArrayRemove\", 1, 2, 3], \"c\": {\"d\": [\"ArrayRemove\", 4, 5, 6]}}"
  12. request: <
  13. database: "projects/projectID/databases/(default)"
  14. writes: <
  15. update: <
  16. name: "projects/projectID/databases/(default)/documents/C/d"
  17. fields: <
  18. key: "a"
  19. value: <
  20. integer_value: 1
  21. >
  22. >
  23. >
  24. update_mask: <
  25. field_paths: "a"
  26. field_paths: "c"
  27. >
  28. current_document: <
  29. exists: true
  30. >
  31. >
  32. writes: <
  33. transform: <
  34. document: "projects/projectID/databases/(default)/documents/C/d"
  35. field_transforms: <
  36. field_path: "b"
  37. remove_all_from_array: <
  38. values: <
  39. integer_value: 1
  40. >
  41. values: <
  42. integer_value: 2
  43. >
  44. values: <
  45. integer_value: 3
  46. >
  47. >
  48. >
  49. field_transforms: <
  50. field_path: "c.d"
  51. remove_all_from_array: <
  52. values: <
  53. integer_value: 4
  54. >
  55. values: <
  56. integer_value: 5
  57. >
  58. values: <
  59. integer_value: 6
  60. >
  61. >
  62. >
  63. >
  64. >
  65. >
  66. >