File size: 288 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
// @flow
import type { DBUsersCommunities } from 'shared/types';
import type { GraphQLContext } from '../../';
export default async (
{ userId }: DBUsersCommunities,
_: any,
{ loaders }: GraphQLContext
) => {
if (userId) return await loaders.user.load(userId);
return null;
};
|