我正在寻找一种方法来使用typescript-react-apollo插件graphql-code-generator(https://www.graphql-code-generator.com/plugins/typescript-react-apollo)和typegraphql(https://typegraphql.com/docs/getting-started .html)。
我遇到的问题是graphql-code-generator插件typescript-react-apollo需要operation.graphql定义文件,但似乎没有type-graphql给我们发出该文件的选项。
根据type-graphql文档,我们只能生成:https ://typegraphql.com/docs/emit-schema.html
有谁知道把这个文件拿出来的方法type-graphql吗?
或者是否operations.graphql可以通过远程连接到 graphql 服务器或从文件中推断它来生成schema.graphql文件?