不要怂,就是干,撸起袖子干!

Commit d9efb009 by Sascha Depold

fixed format of input for formatResults

1 parent 0209b3c9
Showing with 4 additions and 13 deletions
......@@ -47,19 +47,10 @@ module.exports = (function() {
* Example:
* query.formatResults([
* {
* UserWithNames: {
* name: 'barfooz',
* id: 1,
* createdAt: Sat Oct 06 2012 14:46:36 GMT+0200 (CEST),
* updatedAt: Sat Oct 06 2012 14:46:36 GMT+0200 (CEST)
* },
* Tasks: {
* title: 'task',
* id: 1,
* createdAt: Sat Oct 06 2012 14:46:36 GMT+0200 (CEST),
* updatedAt: Sat Oct 06 2012 14:46:36 GMT+0200 (CEST),
* UserWithNameId: 1
* }
* id: 1, // this is from the main table
* attr2: 'snafu', // this is from the main table
* Tasks.id: 1, // this is from the associated table
* Tasks.title: 'task' // this is from the associated table
* }
* ])
*
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!