File size: 258 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 |
// @flow
import type { GraphQLContext } from '../../';
import type { DBUser } from 'shared/types';
export default ({ id }: DBUser, _: any, { loaders }: GraphQLContext) => {
return loaders.userThreadCount.load(id).then(data => (data ? data.count : 0));
};
|