title: How do I import a custom scalar into a .graphql file in NestJs?
body: <p>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:</p>
  
  <p><a href="https://docs.nestjs.com/graphql/scalars" rel="nofollow noreferrer">https://docs.nestjs.com/graphql/scalars</a></p>
  
  <p>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:</p>
  
  <p><a href="https://github.com/nestjs/nest/tree/master/sample/12-graphql-apollo" rel="nofollow noreferrer">https://github.com/nestjs/nest/tree/master/sample/12-graphql-apollo</a></p>
  
  <p>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:</p>
  
  <p><strong>What should I do to use the DateScalar in a property of cats.resolvers.ts?</strong></p>