You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is the data loader's per-key context allowed to be null? #76
Based on looking at the code and testing it, it appears that this data fetcher will pass through the key context to the data loader, even if it's null:
TypeRuntimeWiring.newTypeWiring("Query")
.dataFetcher(
"myField",
environment -> {
String myId = environment.getArgument("myId");
// it's OK if this is null, because the keyContext is allowed to be null?
Integer myKeyContext = getNullableKeyContext(...);
return environment.getDataLoader("myLoader").load(myId, myKeyContext);
})
.build();
Activity