Skip to content

Instantly share code, notes, and snippets.

@newbreedofgeek
Last active December 16, 2015 20:39
Show Gist options
  • Save newbreedofgeek/5493787 to your computer and use it in GitHub Desktop.
Save newbreedofgeek/5493787 to your computer and use it in GitHub Desktop.
Sample JSON for quotes - [14:50] <@wohali> So you may want to consider a different data model. [14:50] <@wohali> I can figure out a way to search on all *documents* in a database that have an item with "cat":"determination" [14:50] <@wohali> but the view won't return the individual items necessaryily. [14:50] <@wohali> necessarily* [14:51] <newb…
{
"_id":"quotes_1319238143",
"_rev":"5-0eda6079e7e6e8f23dd2e0a00b5f2c75",
"items":
[
{
"date":1357879144069,
"text":"don't cry because it's over, smile because it happened.",
"author":"dr. seuss",
"style":3,
"cat":"determination"
},
{
"date":1357879179209,
"text":"those who mind don't matter, and those who matter don't mind.",
"author":"bernard m. baruch",
"style":3,
"cat":"fitness"
},
{
"date":1357883809736,
"text":"be the change that you wish to see in the world.",
"author":"mohandas karamchand gandhi",
"style":1,
"cat":"determination"
},
{
"date":1357879179209,
"text":"those who mind don't matter, and those who matter don't mind.",
"author":"bernard m. baruch",
"style":3,
"cat":"hardwork"
},
{
"date":1357879179209,
"text":"those who mind don't matter, and those who matter don't mind.",
"author":"bernard m. baruch",
"style":3,
"cat":"determination"
},
]
,
"joined_date":1366930391870,
"new_friend_seen_date":1366930391870
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment