Skip to content

Instantly share code, notes, and snippets.

@keith-kurak
Last active April 8, 2017 03:39
Show Gist options
  • Save keith-kurak/b8df8db942c1bfcdd7531b6982b02319 to your computer and use it in GitHub Desktop.
Save keith-kurak/b8df8db942c1bfcdd7531b6982b02319 to your computer and use it in GitHub Desktop.
Sample denormalized Firebase data
{
"users" : {
"user1" : {
"posts" : {
"post1" : {
"title" : "blah",
"body" : "more blah",
"tags" : {"boring" : true, "lame" : true}
},
"post2" : {
"title" : "meh",
"body" : "more meh",
"tags" : {"boring" : true}
}
},
"tags" : {
"boring" : {
"post1" : true,
"post2" : true
},
"lame": {
"post1" : true
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment