Skip to content

Instantly share code, notes, and snippets.

@ra0x3
Created March 5, 2020 18:55
Show Gist options
  • Save ra0x3/f4d3d1c29c3878045e130c7017c65920 to your computer and use it in GitHub Desktop.
Save ra0x3/f4d3d1c29c3878045e130c7017c65920 to your computer and use it in GitHub Desktop.
Sample output of peewee join
{
"reason" : null,
"code" : 200,
"message" : "ok",
"data" : [
{
"id" : 1,
"type" : "messages",
"attributes" : {
"read_at" : null,
"text" : "Ever fund suffer people sell return most throw. Piece center father summer lay picture. Participant need from bit lawyer eye those statement."
},
"included" : [],
"relationships" : {
"user_conversation" : [
{
"included" : [],
"relationships" : {
"user" : [
{
"id" : 1,
"type" : "users",
"included" : [],
"relationships" : {},
"attributes" : {
"twofactor_token" : null,
"salt" : null,
"secret_hash" : null,
"name" : "Audrey Griffin",
"phone" : "(752)200-5158"
}
}
],
"conversation" : [
{
"attributes" : {},
"included" : [],
"relationships" : {},
"type" : "conversations",
"id" : 1
}
]
},
"attributes" : {},
"type" : "users_conversations",
"id" : null
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment