Created
April 23, 2016 19:24
-
-
Save vladar/5def770be005cd9218560c80aa133715 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
class HumanType | |
{ | |
public function getDefinition() | |
{ | |
return ' | |
type Human : Character { | |
id: String! | |
name: String | |
friends: [Character] @resolveMethod("getFriends") | |
appearsIn: [Episode] | |
homePlanet: String | |
} | |
'; | |
} | |
public function getFriends() | |
{ | |
//resolve friends | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment