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.
 
 
 

50 regels
1.5 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 ServerTimestamp field. Since all the
  4. # ServerTimestamp 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 ServerTimestamp fields"
  9. update: <
  10. doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
  11. json_data: "{\"a\": 1, \"b\": \"ServerTimestamp\", \"c\": {\"d\": \"ServerTimestamp\"}}"
  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. set_to_server_value: REQUEST_TIME
  38. >
  39. field_transforms: <
  40. field_path: "c.d"
  41. set_to_server_value: REQUEST_TIME
  42. >
  43. >
  44. >
  45. >
  46. >