Skip to content

Commit e9099e8

Browse files
chore: update instrumentation documentation (#1559)
1 parent 76f1bac commit e9099e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

website/docs/server/data-loader/data-loader-instrumentation.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ val graphQL = GraphQL.Builder()
8989
.build()
9090
```
9191

92-
This data loader instrumentation relies on a global state object that should be stored in the GraphQL context map
92+
This data loader instrumentation relies on a global state object that needs be stored in the GraphQLContext map
9393

9494
```kotlin
9595
val graphQLContext = mapOf(
96-
SyncExecutionExhaustedState::class to ExecutionLevelDispatchedState(queries.size)
96+
ExecutionLevelDispatchedState::class to ExecutionLevelDispatchedState(queries.size)
9797
)
9898
```
9999

@@ -220,7 +220,7 @@ if we proceed dispatching all data loaders the execution will continue to just r
220220

221221
### Usage
222222

223-
In order to enable batching by synchronous execution exhaustion, you need to configure your GraphQL instance with the `DataLoaderLevelDispatchedInstrumentation`.
223+
In order to enable batching by synchronous execution exhaustion, you need to configure your GraphQL instance with the `DataLoaderSyncExecutionExhaustedInstrumentation`.
224224

225225
```kotlin
226226
val graphQL = GraphQL.Builder()
@@ -230,11 +230,11 @@ val graphQL = GraphQL.Builder()
230230
.build()
231231
```
232232

233-
This data loader instrumentation relies on a global state object that should be stored in the GraphQL context map
233+
This data loader instrumentation relies on a global state object that needs be stored in the GraphQLContext map
234234

235235
```kotlin
236236
val graphQLContext = mapOf(
237-
SyncExecutionExhaustedState::class to ExecutionLevelDispatchedState(
237+
SyncExecutionExhaustedState::class to SyncExecutionExhaustedState(
238238
queries.size,
239239
kotlinDataLoaderRegistry
240240
)

0 commit comments

Comments
 (0)