Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

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