File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
content/documentation/master Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ Here is how you might put this in place:
9696
9797 //
9898 // a batch loader function that will be called with N or more keys for batch loading
99- // This can be a singleton object since its stateless
99+ // This can be a singleton object since it's stateless
100100 //
101101 BatchLoader<String, Object> characterBatchLoader = new BatchLoader<String, Object>() {
102102 @Override
@@ -133,10 +133,12 @@ Here is how you might put this in place:
133133
134134
135135 //
136- // this instrumentation implementation will dispatched all the data loaders
137- // as each level fo the graphql query is executed and hence make batched objects
136+ // this instrumentation implementation will dispatch all the data loaders
137+ // as each level of the graphql query is executed and hence make batched objects
138138 // available to the query and the associated DataFetchers
139139 //
140+ // In this case we use options to make it keep statistics on the batching efficiency
141+ //
140142 DataLoaderDispatcherInstrumentationOptions options = DataLoaderDispatcherInstrumentationOptions
141143 .newOptions().includeStatistics(true);
142144
You can’t perform that action at this time.
0 commit comments