I had a project at which backend was written with GraphQL/lambdas. Now I want to convert whole project to NestJS/GraphQL.
The problem is as follows:
I have joined.graphql
file in src/GraphQL
folder and there is an import (usage) of this file in another .ts
file. When I try to start the project with nest start
command, none of *.graphql
files are copied to dist
folder. Then, that import throws an error as there is no joined.graphql
file in the dist
folder.
I tried to add nest-cli.json
file with assets
field to include ./**/*.graphql
files as assets. According to the nestjs docs, now these files should also be copied. But they are not.
How can I proceed in this situation?