File size: 286 Bytes
1e92f2d
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
// @flow
import type { GraphQLContext } from '../../';
import type { DBThread } from 'shared/types';

export default ({ id }: DBThread, _: any, { loaders }: GraphQLContext) => {
  return loaders.threadParticipants
    .load(id)
    .then(result => (result ? result.reduction : []));
};