File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ Source code:
47
47
48
48
``` kotlin
49
49
import com.expediagroup.graphql.server.operations.Query
50
- import com.expediagroup.sharedGraphql.generated.Query as QueryInterface
51
50
import com.types.generated.MyType
51
+ import com.types.generated.Query as QueryInterface
52
52
53
53
class MyQuery : Query , QueryInterface () {
54
54
override suspend fun resolveMyType (input : String ): MyType =
@@ -113,6 +113,6 @@ class MyType : MyTypeInterface() {
113
113
}
114
114
```
115
115
116
- This code is much more performant. The ` MyType ` class is no longer a data class, so the ` field1 ` and ` field2 ` properties
116
+ This code is much more performant! The ` MyType ` class is no longer a data class, so the ` field1 ` and ` field2 ` properties
117
117
can now be resolved independently of each other. If I query for only ` field1 ` , only ` myExpensiveCall1() ` will be called, and
118
118
if I query for only ` field2 ` , only ` myExpensiveCall2() ` will be called.
You can’t perform that action at this time.
0 commit comments