apollo-tooling icon indicating copy to clipboard operation
apollo-tooling copied to clipboard

Centralize types in one __generated__ folder

Open LFSCamargo opened this issue 3 years ago • 1 comments

I'm facing a issue with NextJS that I cannot have a folder like the __generated__ inside the pages folder on my NextJS, I was wondering if have a way to put all the generated types from apollo to one unique folder?

LFSCamargo avatar Jul 14 '21 16:07 LFSCamargo

You can output the types anywhere you want — nextjs just prevents you from putting anything besides pages & api routes in pages. That doesn't mean you can't output the types to something like src/_generated_

Miikis avatar Jul 14 '21 18:07 Miikis