Last active
January 2, 2016 10:38
-
-
Save robwormald/8290914 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//timelog from server | |
{ | |
id : 123, | |
employee : 456, | |
project : 789 | |
} | |
//project from server | |
{ | |
id : 789, | |
name : 'some project' | |
} | |
//employee from server | |
{ | |
id : 456, | |
name : 'joe' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transform... | |
//timelog | |
{ | |
id : 123, | |
employee : Employee.get(456), //this might fire 11ty times!!! | |
project : Project.get(789) //this might fire 11ty times!!! | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ideally - | |
{ | |
id : 123, | |
employee : Employee.lazy(456), //dont fire yet | |
project : Project.lazy(789) //dont fire yet | |
} | |
in view | |
{{timelog.employee.name }} -> now fire the request (or preferably fetch object from local graph) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment