Guest User

Untitled

a guest
Dec 11th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. tweets: {
  2. byId: {
  3. '1': {
  4. id: '1',
  5. title: '...',
  6. description: '...',
  7. isEditable: false,
  8. authorId: '...',
  9. comments: ['1', '3', '4', '7']
  10. },
  11. '2': {
  12. id: '2',
  13. title: '...',
  14. description: '...',
  15. isEditable: false,
  16. authorId: '...',
  17. comments:['2','6']
  18. },
  19. '3': {
  20. id: '3',
  21. title: '...',
  22. description: '...',
  23. isEditable: false,
  24. authorId: '...',
  25. comments: ['5','8','9','10']
  26. },
  27. },
  28. allIds: ['1', '2', '3']
  29. }
  30.  
  31. //Separately we would have another comments object
  32. comments: {
  33. byId: {
  34. '1': {
  35. id: '1',
  36. description: '...',
  37. isEditable: false,
  38. authorId: '...',
  39. tweetId:'1',
  40. },
  41. '2': {
  42. id: '2',
  43. description: '...',
  44. isEditable: false,
  45. authorId: '...',
  46. tweetId:'2',
  47. },
  48. '3': {
  49. id: '1',
  50. description: '...',
  51. isEditable: false,
  52. authorId: '...',
  53. tweetId:'1',
  54. }, ...
  55. },
  56. allIds:['1', '2', '3', '4', '5', ...]
  57. }
Add Comment
Please, Sign In to add comment