import { ResolverContext } from "#root/graphql/types" ; interface Args { me : boolean ; } const userSessionResolver = async ( obj , args , context ) => { if ( args . me !== true ) throw new Error ( "Unsupported argument value" ) ; return context . res . locals . userSession ; } ; export default userSessionResolver ;