CmsApi
Methods
getCmsContent()
getCmsContent < T >(request): Promise < object >
Type Parameters
Parameters
Parameter Type requestobjectrequest.cacheTimeout?numberrequest.categorystringrequest.endCursor?stringrequest.filter?CmsFilter []request.first?numberrequest.last?numberrequest.slug?stringrequest.startCursor?string
Returns
Promise<object>
getSingleCmsContent()
getSingleCmsContent < T >(request): Promise < undefined | T >
Type Parameters
Parameters
Parameter Type requestobjectrequest.cacheTimeout?numberrequest.categorystringrequest.filter?CmsFilter []request.slug?stringrequest.startCursor?string
Returns
Promise<undefined | T>
Article
Type declaration
Name Type Description authorArticleAuthor- blogBlog- bodystringThe content of the article, complete with HTML formatting. contentstringStripped content of the article, single line with HTML tags removed. excerptstringStripped excerpt of the article, single line with HTML tags removed. excerptHtmlstringThe excerpt of the article, complete with HTML formatting. handlestringA human-friendly unique string for the Article automatically generated from its title. idstringA globally-unique ID. imageImageThe image associated with the article. onlineStoreUrlstringReturns a metafield found by namespace and key. publishedAtstringThe date and time when the article was published. tagsstring[]A categorization that a article can be tagged with. titlestringThe article’s name. trackingParametersstringA URL parameters to be added to a page URL when it is linked from a GraphQL result. This allows for tracking the origin of the traffic.
ArticleAuthor
type ArticleAuthor : object;
The author of an article.
Type declaration
Name Type Description biostringThe author’s bio. emailstringThe author’s email. firstNamestringThe author’s first name. lastNamestringThe author’s last name. namestringThe author’s full name.
Blog
Type declaration
Name Type Description articleByHandleArticleFind an article by its handle. authorsArticleAuthor []The authors who have contributed to the blog. handlestringA human-friendly unique string for the Blog automatically generated from its title. idstringA globally-unique ID. onlineStoreUrlstringThe URL used for viewing the resource on the shop’s Online Store. Returns null if the resource is currently not published to the Online Store sales channel. titlestringThe blogs’s title.
BlogQuery
Type declaration
Name Type blogPick<Blog , "title"> & object
BlogsQuery
Type declaration
Name Type blogsobjectblogs.nodesPick<Blog , "title" | "handle"> & object[]blogs.pageInfoPageInfo
CmsFilter
Type declaration
CmsFilterOperator
The filter operator.
Page
Type declaration
Name Type Description bodySummarystringSummary of the page body. contentstringThe description of the page, complete with HTML formatting. createdAtstringThe timestamp of the page creation. handlestringA human-friendly unique string for the page automatically generated from its title. idstringA globally-unique ID. onlineStoreUrlstring- titlestringThe title of the page. trackingParametersstringA URL parameters to be added to a page URL when it is linked from a GraphQL result. This allows for tracking the origin of the traffic. updatedAtstringThe timestamp of the latest page update.