Thanks to the package @nestjs/graphql I can create separate .graphql files in each module of my application and the Nestjs system gathers them all and introduces them to Apolo server well, but the problem comes when I try to make custom scalars, I do them as is his tutorial says:
https://docs.nestjs.com/graphql/scalars
But I can not find a way to import them into a .graphql file so I could use it within that file. and since the file is .graphql the import does not work. Do you know how I can import a custom scalar to be used within a .graphql file? Something that can serve as an example is an example that they use:
https://github.com/nestjs/nest/tree/master/sample/12-graphql-apollo
As you can see them in their example they expose that they have a module called cats, where inside the module they have their cats.resolvers.ts and their cats.graphql; and on the other hand, they have their date.scalar.ts defined. The question using this example:
What should I do to use the DateScalar in a property of cats.resolvers.ts?