You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,4 +41,9 @@ Check out the examples folder for sample usage.
41
41
42
42
[Read more here](https://zackoverflow.dev/writing/tsgql).
43
43
44
-
This is an experimental internal tool we use at Modfy, and is subject to breaking changes and general instability.
44
+
## How it works
45
+
tsgql uses SWC to parse your Typescript schema into an AST, which is then walked and used to generate a GraphQL schema with [apollo-encoder](https://github.com/apollographql/apollo-rs/tree/main/crates/apollo-encoder).
46
+
47
+
Before the SWC step, we run your Typescript types through the TS Compiler API, which reduces them into a simpler form. This is necessary because SWC provides no such type system utilities.
48
+
49
+
This is an experimental internal tool we use at Modfy, and is subject to breaking changes and general instability.
0 commit comments