Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tweets: {
- byId: {
- '1': {
- id: '1',
- title: '...',
- description: '...',
- isEditable: false,
- authorId: '...',
- comments: ['1', '3', '4', '7']
- },
- '2': {
- id: '2',
- title: '...',
- description: '...',
- isEditable: false,
- authorId: '...',
- comments:['2','6']
- },
- '3': {
- id: '3',
- title: '...',
- description: '...',
- isEditable: false,
- authorId: '...',
- comments: ['5','8','9','10']
- },
- },
- allIds: ['1', '2', '3']
- }
- //Separately we would have another comments object
- comments: {
- byId: {
- '1': {
- id: '1',
- description: '...',
- isEditable: false,
- authorId: '...',
- tweetId:'1',
- },
- '2': {
- id: '2',
- description: '...',
- isEditable: false,
- authorId: '...',
- tweetId:'2',
- },
- '3': {
- id: '1',
- description: '...',
- isEditable: false,
- authorId: '...',
- tweetId:'1',
- }, ...
- },
- allIds:['1', '2', '3', '4', '5', ...]
- }
Add Comment
Please, Sign In to add comment