使用 Shopify graphql admin api 操作文件
我想使用 Shopify 沙箱中的 deleteFile 方法删除文件。但是,deleteFile 方法需要文件 ID,而 File 对象不需要不包含 id 属性。
所以我的问题是如何在 shopify graphql 中获取文件 id ?
I want to delete a file using deleteFile method from Shopify sandbox. However deleteFile method is requiring file id and the File object doesn't contain id property.
So my question is how do I get file id in shopify graphql ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要获取媒体图像 id,但需要获取图像 id。
因此,您可以使用 MediaImage 上的
... 请求这种类型的 id
You need to get Media Image id but an Image id.
So, you can request this type of id using
... on MediaImage