Sample State - dmurchison/stuck_overclone_app GitHub Wiki
JavaScript Sample State
{
entities: {
users: {
1: {
id: 1,
username: "coder123"
},
2: {
id: 2,
username: "SirHackALot"
},
3: {
id: 3,
username: "BILL"
}
},
questions: {
1: {
id: 1,
body: "WHY DOESN'T THIS CODE WORK?!?!",
code: {
// console.fog('Hello World')
},
authorId: 10
},
2: {
id: 2,
body: "What coding language is this?",
code: {
// def fun_printer(num)
// i = 0
// while i < num
// p 'fun'
// i += 1
// end
// end
},
authorId: 11
}
},
answers: {
1: {
id: 1,
body: "You spelt log wrong!",
code: {
// console.log('Hello World')
},
authorId: 20,
questionId: 1
}
},
upVotes: {
1: {
id: 1,
userId: 50,
answerId: 1
}
},
downVotes: {
1: {
id: 1,
userId: 50,
answerId: 1
}
},
},
}