简体   繁体   English

使用 TypeGraphQL 在浏览器中为 Apollo 本地状态生成 typedef 和解析器

[英]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.

相关问题 在 Apollo 中使用 2 组 typedef - Using 2 sets of typedefs in Apollo 在Apollo typeDefs中使用TypeScript接口和类型 - Using TypeScript Interfaces and Types in Apollo typeDefs 使用 typegraphql (Apollo Server) 上传文件 - File uploads with typegraphql (Apollo Server) Apollo GraphQL Schema使用Typescript时解析器的拼接问题 - Apollo GraphQL Schema Stitching issue with Resolvers when using Typescript TypeGraphQL:使用从本地 Package 导入的 GraphQL class 时出现@Arg 类型错误 - TypeGraphQL : @Arg Type Error when using a GraphQL class imported from a local Package Apollo 解析器 - 等待另一个解析器的结果 - Apollo resolvers - await result from another resolver Graphql apollo 服务器解析器 arguments 类型 - Graphql apollo server resolvers arguments types 错误:正文必须是字符串。 收到:{ resolvers: [[function HelloResolver]], validate: false } 使用 Type-graphql 和 apollo-server-express 时 - Error: Body must be a string. Received: { resolvers: [[function HelloResolver]], validate: false } when using Type-graphql and apollo-server-express 错误:Apollo Server 需要现有架构、模块或 typeDefs - Error: Apollo Server requires either an existing schema, modules or typeDefs 使用带有 typegraphql 的非标准类型 (BigNumber) - Using a non-standard type (BigNumber) with typegraphql
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM