GraphQL custom resolver in V4

Could this resolver be placed within the plugin folder, i.e. /strapi/src/plugins/plugin-name/server/register.js. When I do it is not registered correctly?