feat: add getCurrentUser query

This commit is contained in:
Ali BARIN
2022-03-29 21:06:30 +02:00
committed by Ömer Faruk Aydın
parent 140734b32c
commit b8fb84ef42
3 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import Context from '../../types/express/context';
const getCurrentUser = async (_parent: unknown, _params: unknown, context: Context) => {
return context.currentUser;
};
export default getCurrentUser;