Best practice for using Typescript with GraphQL (generated files) #6392
Unanswered
charklewis
asked this question in
Q&A
Replies: 1 comment
-
Hi! I usually prefer monorepo setup, and then my code always has a local file(s) with the schema, that I can just load locally. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to building a dockerised set up and not too sure how to solve a dependancy issue.
I have two repos, one to manage my database and the other to manage my action handlers (lambda functions as an express app). The action handlers use the database to generate a graphql scheme, and this is used to type check the code when the action handlers express app starts (as it is written in Typescript).
However, I have heard (and I am finding it really hard to implement) to have one docker container depending on another. A suggestion I have had from a friend is to save the generated graphql schema to GitHub, however the schema is tens of thousands of lines long and it really should depend on the database being composed in the docker image.
Has anyone had this issue before or any tips on how to resolve?
Beta Was this translation helpful? Give feedback.
All reactions