class MBThreadResolversImpl implements MBThreadResolvers {

    @Override
    public DataFetcher<CompletableFuture<MBThread>> getMBThreadDataFetcher() {
        return environment -> {
            long threadId = getThreadId(environment);
            if (threadId <= 0) {
                return null;
            }

            DataLoader<Long, MBThread> dataLoader = environment.getDataLoader(MBThreadBatchLoader.KEY);
            return dataLoader.load(threadId);
        };
    }

}