salaryDataFetcher returns Mono

We need the return type to be a Reactor type for the context to be
propagated.
This commit is contained in:
Rob Winch
2021-04-28 11:41:35 -05:00
committed by Rob Winch
parent 84b9b65777
commit ca369ecc7c

View File

@@ -22,7 +22,7 @@ public class DataFetchers {
public DataFetcher salaryDataFetcher = env -> {
Employee employee = env.getSource();
return salaryService.getSalaryForEmployee(employee).toFuture();
return salaryService.getSalaryForEmployee(employee);
};
public DataFetcher updateSalaryFetcher = env -> {