| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 67 | public function benchQueryWithFragment() |
||
| 68 | { |
||
| 69 | $q = ' |
||
| 70 | query UseFragment { |
||
| 71 | luke: human(id: "1000") { |
||
| 72 | ...HumanFragment |
||
| 73 | } |
||
| 74 | leia: human(id: "1003") { |
||
| 75 | ...HumanFragment |
||
| 76 | } |
||
| 77 | } |
||
| 78 | |||
| 79 | fragment HumanFragment on Human { |
||
| 80 | name |
||
| 81 | homePlanet |
||
| 82 | } |
||
| 83 | '; |
||
| 84 | |||
| 85 | GraphQL::executeQuery( |
||
| 86 | StarWarsSchema::build(), |
||
| 87 | $q |
||
| 88 | ); |
||
| 99 |