mageworx / module-seomarkup-graph-ql
N/A
Package info
github.com/mageworx/MageWorx_SeoMarkupGraphQl
Type:magento2-module
pkg:composer/mageworx/module-seomarkup-graph-ql
Requires
- magento/framework: >=102.0.0 < 104
- mageworx/module-seomarkup: >= 2.6.0
This package is auto-updated.
Last update: 2026-07-16 13:31:26 UTC
README
GraphQL API module for MageWorx Magento 2 SEO Suite Ultimate.
Installation
-
Copy-to-paste method
Download this module and upload it to the
app/code/MageWorx/SeoMarkupGraphQldirectory. Create theSeoMarkupGraphQldirectory first if it does not exist. -
Installation using Composer (from Packagist)
composer require mageworx/module-seomarkup-graph-ql
How to use
SeoMarkupGraphQl extends the output attributes of the Product, Category and CMS Page queries with the mw_seo_markup field.
Supported fields
- Product
mw_seo_markupsocial_markuprich_snippetswebsitesellerproductbreadcrumbs
- Category
mw_seo_markupsocial_markuprich_snippetswebsitesellerbreadcrumbs
- CMS Page
mw_seo_markupsocial_markuprich_snippetswebsitesellerwebpagebreadcrumbs
Other attributes are defined according to the Magento GraphQL guide.
Product, Category and CMS Page queries use syntax similar to the Magento user guide.
Product query signature
products( search: String filter: ProductAttributeFilterInput pageSize: Int currentPage: Int sort: ProductAttributeSortInput ): Products
Request
{
products(filter: {sku: {eq: "24-WB04"}}) {
items {
name
sku
mw_seo_markup {
social_markup
rich_snippets {
website
seller
product
breadcrumbs
}
}
}
}
}
Response
{
"data": {
"products": {
"items": [
{
"name": "Overnight Duffle",
"sku": "24-WB07",
"mw_seo_markup": {
"social_markup": "\\n<meta property=\\\"og:type\\\" content=\\\"product.item\\\"/>\\n<meta property=\\\"og:title\\\" content=\\\"Overnight Duffle\\\"/>\\n...",
"rich_snippets": {
"website": "<script type=\\\"application/ld+json\\\">{\\\"@context\\\":\\\"http://schema.org\\\",\\\"@type\\\":\\\"WebSite\\\",\\\"url\\\":\\\"https://store_url/\\\"}</script>",
"seller": "<script type=\\\"application/ld+json\\\">{...}</script>",
"product": "<script type=\\\"application/ld+json\\\">{...}</script>",
"breadcrumbs": "<script type=\\\"application/ld+json\\\">{...}</script>"
}
}
}
]
}
}
}
Known limitations
The breadcrumbs rich snippet rebuilds the category path directly from the current category/product so it stays correct across items in a list query. As a result, third-party plugins on Magento\Catalog\Helper\Data::getBreadcrumbPath() are not reflected in the GraphQL output, unlike on the storefront.