title: Is it ok to use controller and graphql resolver together in nestJs?
body: <p>For my next project I would like to use Graphql inside the FrontEnd. Furthermore this project should also offer a Rest-Api.
  Now I have discovered this extremely great framework "nestjs", where it is theoretically possible to combine a Graphql endpoint and a rest endpoint.
  Unfortunately I can't find anything in the documentation if this can lead to problems. Is the following code usable without problems?</p>
  
  <p>Artikel controller:</p>
  
  <pre><code>@Controller('article')
  @Resolver('Article')
  export class ArticleController {
      constructor(private articleService: ArticleService){}
  
      @Get()
      @Query(returns =&gt; CArticle)
      async Article() {
       const dbElement=await this.articleService.getById("xy");
       return dbElement;
      }
  }
  </code></pre>
  
  <p>Article module:</p>
  
  <pre><code>@Module({
      controllers:[ArticleController],
      providers:[ArticleService,ArticleController]
  })
  export class ArticleModule {}
  </code></pre>