Jordan
12/05/2018, 5:26 PMexport const blockBannedUserMiddleware = async (resolve: any, parent: any, args: any, context: Context, info: any) => {
// check if user is banned based on context, if so throw forbidden error
return resolve(parent, args, context, info);
};
JustinR
12/05/2018, 5:35 PM