File size: 269 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
// @flow
import type { DBMessage } from 'shared/types';
import type { GraphQLContext } from '../../';
export default (
{ parentId }: DBMessage,
_: void,
{ loaders }: GraphQLContext
) => {
if (!parentId) return null;
return loaders.message.load(parentId);
};
|