File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ Source code:
4747
4848``` kotlin
4949import com.expediagroup.graphql.server.operations.Query
50- import com.expediagroup.sharedGraphql.generated.Query as QueryInterface
5150import com.types.generated.MyType
51+ import com.types.generated.Query as QueryInterface
5252
5353class MyQuery : Query , QueryInterface () {
5454 override suspend fun resolveMyType (input : String ): MyType =
@@ -113,6 +113,6 @@ class MyType : MyTypeInterface() {
113113}
114114```
115115
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
117117can now be resolved independently of each other. If I query for only ` field1 ` , only ` myExpensiveCall1() ` will be called, and
118118if I query for only ` field2 ` , only ` myExpensiveCall2() ` will be called.
You can’t perform that action at this time.
0 commit comments