[英]Using TypeGraphQL to generate typedefs and resolvers for Apollo local state in browser
I would like to use TypeGraphQL with Apollo local state in browser.我想在浏览器中使用带有 Apollo 本地状态的 TypeGraphQL。
How can I use TypeGraphQL to generate typedefs and resolvers for Apollo local state in browser?如何使用 TypeGraphQL 在浏览器中为 Apollo 本地状态生成 typedef 和解析器?
I saw the browser shim but the purpose seems to ignore TypeGraphQL decorators in shared files between client and server (eg entities/models).我看到了浏览器垫片,但目的似乎是忽略客户端和服务器之间共享文件中的 TypeGraphQL 装饰器(例如实体/模型)。
Have you tried checking for examples on the TypeGraphQL repository?您是否尝试过检查 TypeGraphQL 存储库中的示例?
https://github.com/MichalLytek/type-graphql/tree/master/examples/apollo-client https://github.com/MichalLytek/type-graphql/tree/master/examples/apollo-client
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.