upload.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. sushka2.jpg -
  2. UPLOAD RESULT
  3. {_id: "6004c96d6f871f156bf4b318", url: "images/4d4e58e7dbd46c69f99a5f1e26f1d6e3"}
  4. url: "images/4d4e58e7dbd46c69f99a5f1e26f1d6e3"
  5. _id: "6004c96d6f871f156bf4b318"
  6. __proto__: Object
  7. sushka3.jpg -
  8. UPLOAD RESULT
  9. {_id: "6004c9e76f871f156bf4b319", url: "images/171945b4a171e904a1306312b8d83c8f"}
  10. url: "images/171945b4a171e904a1306312b8d83c8f"
  11. _id: "6004c9e76f871f156bf4b319"
  12. __proto__: Object
  13. sushka4.jpg -
  14. UPLOAD RESULT
  15. {_id: "6004ca096f871f156bf4b31a", url: "images/1f2c60b45db35d5b5d4cb25c934904fa"}
  16. url: "images/1f2c60b45db35d5b5d4cb25c934904fa"
  17. _id: "6004ca096f871f156bf4b31a"
  18. __proto__: Object
  19. mutation ImageUpsert {
  20. ImageUpsert(image: {
  21. _id: "6004c96d6f871f156bf4b318",
  22. good: {
  23. _id: "5dcabcf46d09c45440d14cf3"
  24. }
  25. }) {
  26. _id
  27. url
  28. }
  29. }
  30. mutation AddImgToGood{
  31. GoodUpsert(good:{
  32. _id: "5dcabcf46d09c45440d14cf3",
  33. images:[
  34. {
  35. _id: "6004c96d6f871f156bf4b318"
  36. good:{
  37. _id: "5dcabcf46d09c45440d14cf3"
  38. }
  39. }
  40. ]
  41. }){
  42. _id
  43. }
  44. }