graphql-code-generator icon indicating copy to clipboard operation
graphql-code-generator copied to clipboard

Typescript Resolvers: Support subpath imports in mappers

Open JavaScriptBach opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

I am using typescript-resolvers and want to define mappers for type safety. Mappers require an import of the form <import specifier>#<thing to import>.

However, in some cases I would like the imports to be subpath imports in order to conform with the rest of my codebase. This is not supported right now because # was already used in the mapper syntax, so I need to hack around this by using relative imports for now.

Describe the solution you'd like

Extend the mappers syntax to support subpath imports. Maybe by using \# to distinguish between #?

Describe alternatives you've considered

No response

Is your feature request related to a problem? Please describe.

No response

JavaScriptBach avatar Aug 08 '24 00:08 JavaScriptBach