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

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() { ...@@ -47,19 +47,10 @@ module.exports = (function() {
* Example: * Example:
* query.formatResults([ * query.formatResults([
* { * {
* UserWithNames: { * id: 1, // this is from the main table
* name: 'barfooz', * attr2: 'snafu', // this is from the main table
* id: 1, * Tasks.id: 1, // this is from the associated table
* createdAt: Sat Oct 06 2012 14:46:36 GMT+0200 (CEST), * Tasks.title: 'task' // this is from the associated table
* 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
* }
* } * }
* ]) * ])
* *
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!