It would be a good DX improvement to be able to use any fragments that are included via the autoImportPatterns option in any fragment/query/mutation file without having to import them.
Currently, to use fragments, the fragment has to be explicitly imported using a non-standard syntax:
But because fragment names have to be unique anyway and unused fragments could be treeshaken during codegen, it would be possible to skip the imports completely:
It would be a good DX improvement to be able to use any fragments that are included via the
autoImportPatterns
option in any fragment/query/mutation file without having to import them.Currently, to use fragments, the fragment has to be explicitly imported using a non-standard syntax:
But because fragment names have to be unique anyway and unused fragments could be treeshaken during codegen, it would be possible to skip the imports completely: