简体   繁体   English

Shopify graphql通过句柄获取文章?

[英]Shopify graphql get article by handle?

is there a way to get the handle of a shopify blog article ? 有没有办法获取shopify博客文章的句柄? I'm talking about a human readable id/handle. 我说的是人类可读的ID /句柄。 It seems that this exists on the liquid side, but not sure why it doesnt exist on the graphql side. 看来这存在于液体方面,但不确定为什么它在graphql方面不存在。

Definitely the article "url" field is human readable, so im thinking that it must be there somewhere 绝对地,文章“ url”字段是人类可读的,因此即时通讯认为它必须位于某处

The Shopify GraphQL API is in beta. Shopify GraphQL API是beta版。

The documentation for blog articles does not look complete yet as it only shows the id field, and I would expect other fields such as handle and body_html . 博客文章的文档看起来并不完整,因为它仅显示id字段,我希望其他字段如handlebody_html https://help.shopify.com/api/graphql-admin-api/reference/object/onlinestorearticle https://help.shopify.com/api/graphql-admin-api/reference/object/onlinestorearticle

Using the GraphiQL tool it looks like some filtering is supported, but I could not get a match using handle . 使用GraphiQL工具似乎支持某些过滤,但是我无法使用handle进行匹配。

graphiql Explorer的屏幕截图

(I would like to know how to use introspection to find the list of supported filter parameters...) (我想知道如何使用自省功能来查找支持的过滤器参数列表...)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM