noob question, but in the graphql boilerplate type...
# orm-help
k
noob question, but in the graphql boilerplate typescript example (https://github.com/graphql-boilerplates/typescript-graphql-server), if I run
npm run build
, the
*.graphql
files are not copied to the
dist
folder. question 1) what do I have to add to
tsconfig.json
in order to copy them? question 2)
typeDefs: './src/schema.graphql'
doesn't work even if I remove
src/
from the path. If I add the
graphql-import
package I can import the schema but only using an absolute path,
const typeDefs = importSchema('schema.graphql')
(or
'./schema.graphql'
) doesn't work - what am I doing wrong?
b
2) I can help you with your question2 use @kratam
Copy code
importSchema(path.join(__dirname, `schema.graphql`)
👍 1