Anyway it if satisfying to see as native CLI executable as it's web version.
CC #friendos
`import {MyQueryDocument} from myQuery.graphql` with strict TS checks on @apollo/client `useQuery` and `client.query()` on node app is another challenge beaten this week.
No docs or reference implementation, so have to be inventive on #linter, #typescript, #codegen config
For curious: the key is to generate `myQuery.graphql.ts` by codegen near-operation-file. works perfect in React app, in
#oclif app have to trick with
`import {MyQueryDocument} from myQuery.graphql-generated`
π¨βπ§ Cool to see what people are starting to build with
---
I had some fun with #oclif, #Typescript and #Neo4j
Thanks @jdxcode for your intro article:
https://medium.com/@mesirii/writing-a-command-line-database-client-in-10-minutes-aa608536ae4b
https://twitter.com/mesirii/status/981649055561539584