class MBThreadResolversImpl implements MBThreadResolvers {

    @Override
    public DataFetcher<MBThread> deleteMBThreadDataFetcher() {
        return environment -> {
            long threadId = util.getLongArg(environment, "threadId");

            return mbThreadLocalService.deleteMBThread(threadId);
        };
    }

}