What is the best work flow for pure front-end typescript? #7771
Answered
by
UchihaYuki
UchihaYuki
asked this question in
Q&A
-
I packed my typescript with webpack and send it to users' browser. My current workflow is as follows:
query hello {
helloWorld
}
overwrite: true
generates:
src/ts/graphql/api.ts:
schema: "http://localhost:6002/api"
documents: "./src/ts/graphql/api.gql"
plugins:
- "typescript"
- "typescript-operations" The problem is I don't know how to use api.ts, from the official doc, I have to mix my gql into ts files to make it work, but I'd like to seperate my gql in api.gql. Thank you, guys. |
Beta Was this translation helpful? Give feedback.
Answered by
UchihaYuki
Apr 15, 2022
Replies: 1 comment
-
Solved it by using:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
UchihaYuki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved it by using: