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.
 
 
 

68 lines
1.7 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 be created with any amount of transforms.
  4. description: "update: all transforms in a single call"
  5. update: <
  6. doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
  7. json_data: "{\"a\": 1, \"b\": \"ServerTimestamp\", \"c\": [\"ArrayUnion\", 1, 2, 3], \"d\": [\"ArrayRemove\", 4, 5, 6]}"
  8. request: <
  9. database: "projects/projectID/databases/(default)"
  10. writes: <
  11. update: <
  12. name: "projects/projectID/databases/(default)/documents/C/d"
  13. fields: <
  14. key: "a"
  15. value: <
  16. integer_value: 1
  17. >
  18. >
  19. >
  20. update_mask: <
  21. field_paths: "a"
  22. >
  23. current_document: <
  24. exists: true
  25. >
  26. >
  27. writes: <
  28. transform: <
  29. document: "projects/projectID/databases/(default)/documents/C/d"
  30. field_transforms: <
  31. field_path: "b"
  32. set_to_server_value: REQUEST_TIME
  33. >
  34. field_transforms: <
  35. field_path: "c"
  36. append_missing_elements: <
  37. values: <
  38. integer_value: 1
  39. >
  40. values: <
  41. integer_value: 2
  42. >
  43. values: <
  44. integer_value: 3
  45. >
  46. >
  47. >
  48. field_transforms: <
  49. field_path: "d"
  50. remove_all_from_array: <
  51. values: <
  52. integer_value: 4
  53. >
  54. values: <
  55. integer_value: 5
  56. >
  57. values: <
  58. integer_value: 6
  59. >
  60. >
  61. >
  62. >
  63. >
  64. >
  65. >