Skip to content

Commit 843e2ee

Browse files
committed
docs: address typo
1 parent 5f352a6 commit 843e2ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/recommended-usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Source code:
4747

4848
```kotlin
4949
import com.expediagroup.graphql.server.operations.Query
50-
import com.expediagroup.sharedGraphql.generated.Query as QueryInterface
5150
import com.types.generated.MyType
51+
import com.types.generated.Query as QueryInterface
5252

5353
class 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
117117
can now be resolved independently of each other. If I query for only `field1`, only `myExpensiveCall1()` will be called, and
118118
if I query for only `field2`, only `myExpensiveCall2()` will be called.

0 commit comments

Comments
 (0)