feat: add getCurrentUser query
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
140734b32c
commit
b8fb84ef42
7
packages/backend/src/graphql/queries/get-current-user.ts
Normal file
7
packages/backend/src/graphql/queries/get-current-user.ts
Normal 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;
|
Reference in New Issue
Block a user