RTK查询GraphQl文件上传
使用Redux Toolkit和RTK查询执行我的第一个应用程序。
我有“@rtk-query/graphql-request-base-query”:“^2.1.0”,
and “ graphql-request”:“^4.2.0”,我得到突变和查询工作,但无法弄清楚如何正确地上传文件。我知道如何使用Apollo客户端的设置,但不确定在这里应该如何完成某人的想法或可以提示?后端期望GraphQL上传类型。
Doing my first app with redux toolkit and rtk query.
I have "@rtk-query/graphql-request-base-query": "^2.1.0",
and "graphql-request": "^4.2.0",
I get mutations and queries working but cannot figure out how to properly do the file upload. I know how to do with a setup of apollo client but not sure how it should be done here maybe someone has an idea or could give a hint ? the backend expects graphql upload type.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论