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 lines
1.3 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 ServerTimestamp value can occur at any depth. In this case, the transform
  4. # applies to the field path "b.c". Since "c" is removed from the update, "b"
  5. # becomes empty, so it is also removed from the update.
  6. description: "update-paths: nested ServerTimestamp field"
  7. update_paths: <
  8. doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
  9. field_paths: <
  10. field: "a"
  11. >
  12. field_paths: <
  13. field: "b"
  14. >
  15. json_values: "1"
  16. json_values: "{\"c\": \"ServerTimestamp\"}"
  17. request: <
  18. database: "projects/projectID/databases/(default)"
  19. writes: <
  20. update: <
  21. name: "projects/projectID/databases/(default)/documents/C/d"
  22. fields: <
  23. key: "a"
  24. value: <
  25. integer_value: 1
  26. >
  27. >
  28. >
  29. update_mask: <
  30. field_paths: "a"
  31. field_paths: "b"
  32. >
  33. current_document: <
  34. exists: true
  35. >
  36. >
  37. writes: <
  38. transform: <
  39. document: "projects/projectID/databases/(default)/documents/C/d"
  40. field_transforms: <
  41. field_path: "b.c"
  42. set_to_server_value: REQUEST_TIME
  43. >
  44. >
  45. >
  46. >
  47. >